Key code

This tool show 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:

Example code

See also

Char code

Additional information

The KeyboardEvent.key read-only property returns the value of a key or keys pressed by the user. Read more

Source code

JavaScript source code (/key-code.js)

Keywords

key value pressed keyCode