KeyCode & Event Inspector
Keyboard / Event
Press any key on your keyboard to instantly inspect JavaScript keyboard event properties: event.key, event.code, event.which, and modifier keys.
| Key | Code | KeyCode | Modifiers |
|---|---|---|---|
| No key events captured yet. Press any key on your keyboard. | |||
About This Tool
Attaches a standard DOM keydown event listener to inspect every keyboard property reported by your browser: event.key, event.code, event.which, legacy keyCode, and event.location. Useful for debugging shortcut handlers, cross-browser key differences, and international layout inputs.
Features an interactive stream log comparing recent key events side by side. Keystrokes are ignored when typing inside standard form inputs so you can still navigate normally.
Key Features
- Hero key display: Real-time key name and numeric legacy keyCode in large legible typography.
- Four property inspection cards: Side-by-side readouts for event.key, event.code, event.which, and event.location.
- Live modifier lights: Visual indicators for Meta, Ctrl, Alt, and Shift modifier key states.
- 20-Row event stream: Chronological event table capturing keystrokes and modifier combinations.
- Input-safe listener: Suspends key capture automatically when cursor is inside any text field.
- 100% Client-side: All keyboard events are read locally with zero analytics logging of user input.