Why is "keypress" and "keyCode" not working?
KeyboardEvent.key - Returns a string representing the key value of the key represented by the event.
KeyboardEvent.key
JavaScript Char Codes
Event Reference | MDN