Key Inspector

Key Inspector

Displays the key code, key value, modifier flags, and physical location for every keyboard event you trigger; essential for debugging custom keyboard shortcuts.

?

Press any key to inspect it

Key Inspector

Displays the key code, key value, modifier flags, and physical location for every keyboard event you trigger; essential for debugging custom keyboard shortcuts.

Common uses

  • Find the keyCode for the Escape key
  • Debug why a keyboard shortcut isn't firing

Also searched as

  • keyboard key code tester
  • javascript keycode finder
  • what is the keycode for escape
  • event.key and event.code viewer
  • keyboard event inspector
  • debug keyboard shortcut not working
  • check keyboard modifier flags online
  • keydown event tester
  • event.code physical key

Frequently asked questions

How do I find the keyCode for a key?

Open the Key Inspector and press the key. It shows event.key, event.code, the legacy keyCode and which values, modifier flags and key location.

Why isn't my keyboard shortcut firing?

Press the exact combination in the Key Inspector to see the real key value and modifiers the browser reports, then compare with your handler.

What is the difference between key and code?

event.key is the value the key produces (it changes with layout and Shift), while event.code identifies the physical key on the keyboard. The inspector displays both.

Is my data uploaded to a server?

No. This tool runs entirely in your browser — your input is processed locally on your device and is never uploaded or stored on a server.