All tools

Keyboard Keycode Finder

Press any key, see its event details.

Press any key

Last press shows up here

About

Press any key on your keyboard and see all the JavaScript event properties: key, code, keyCode (deprecated but still common), which, plus modifier states. Useful when wiring up keyboard shortcuts in code.

How to use

  1. Click into the input area.
  2. Press any key.
  3. Read the event details.

FAQ

Should I use key, code, or keyCode in my code?+

Use key for the character ('a', 'Enter') and code for the physical key location ('KeyA', 'Enter'). keyCode is deprecated but still works.