Key Code
Key
Press any key to get the JavaScript event keycode
event.key
key
event.location
location
event.which
(deprecated)
which
event.code
code
Table
Made with love by
Wes Bos
— fork or suggest edits on
GitHub
—
Follow @wesbos
Tweet