Key code


Shows the value of a key or keys pressed by the user and the implementation depended key code.


Press any key

KeyboardEvent.key = ""

KeyboardEvent.keyCode = ""


The KeyboardEvent.key read-only property returns the value of a key or keys pressed by the user. Its value is determined as follows: