DOM Events

Why is "keypress" and "keyCode" not working?

KeyboardEvent.key  - Returns a string representing the key value of the key represented by the event.

JavaScript Char Codes

Event Reference | MDN