Keyboard Inspector
Inspect event.key, event.code, keyCode and modifier flags on every keypress.
Press any key to inspect its event
Your input is processed locally in this browser tab.
How to use Keyboard Inspector
Press any key or modifier combination (Ctrl, Alt, Shift, Cmd/Meta) while focus is outside text fields.
Inspect the live event.key, physical event.code, event.location, and active modifiers.
Review the last 15 captured keystrokes in the Recent keys history table.
Frequently asked questions
What is the difference between event.key and event.code?
event.key reports the typed character taking layout/Shift into account, whereas event.code identifies the physical key position (e.g. KeyW).
Why do OS/browser-reserved shortcuts not always appear?
Shortcuts like Cmd+W or Alt+Tab are intercepted directly by the OS or browser before reaching web page listeners.