Key Key Code

Press any key to get the JavaScript event keycode

event.key
key
event.which (deprecated)
which
event.code
code
Made with love by Wes Bos — fork or suggest edits on GitHubFollow @wesbos Tweet