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
Displays the key code, key value, modifier flags, and physical location for every keyboard event you trigger; essential for debugging custom keyboard shortcuts.
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.
Press the exact combination in the Key Inspector to see the real key value and modifiers the browser reports, then compare with your handler.
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.
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.