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
Made with love by Wes Bos — fork or suggest edits on GitHubFollow @wesbos Tweet