Keycode info

Find the javascript keycode, code, location and modifiers of any pressed key.

About Keycode info

Press any key and see what JavaScript reports for it: the key value, the legacy keyCode number, the physical code, the location (left or right Shift, numpad) and which modifiers were held.

When you would use it

How to use it

  1. Click on the page so it has focus, then press a key.
  2. Read the values; each field has a copy button.
  3. Hold modifiers (Shift, Ctrl, Alt, Meta) to see them reported.

Things worth knowing

Frequently asked questions

Why does the key show Dead or Unidentified?
Dead means a dead key (such as ยด or ^) waiting to combine with the next letter. Unidentified means the browser has no name for that key, common for some laptop-specific or media keys.
Why is keyCode 0 or the same for different keys?
keyCode was never standardised. Browsers report 0 for keys they cannot map, and some keys share codes. That is exactly why key and code replaced it.

All the tools