Key Code Tester
Press any key on your keyboard to instantly inspect JavaScript key properties, values, and modifier states.
Event.keyCode
The value of the key pressed.
Physical key on the keyboard.
Key location (0: standard, 1: left, 2: right, 3: numpad).
Legacy numeric code identifier.
Modifier States
Recent Key History
0 events recordedAbout Keyboard Event Inspection
Learn how JavaScript manages keyboard events, codes, and legacy standards.
Handling user input across different layouts and physical keyboards requires precise inspection of JavaScript keyboard events. This utility provides deep insight into every keystroke event property to help developers construct robust shortcuts, gaming controls, and form handlers.
Character Value (key)
Returns the printed character value generated by the key, respecting modifier states like shift.
Physical Layout (code)
Identifies the physical key on the keyboard independent of current language layout or modifier state.
Legacy keyCode Support
Inspects deprecated numeric key codes to maintain compatibility with legacy codebase systems.
100% Browser Local
All keyboard inputs are captured locally in your current browser window with zero telemetry tracking.
Modifier Key Tracking
Real-time status indicators for Shift, Control, Alt, and Meta (Command/Windows) keys during combinations.
Key Location Mapping
Differentiates between duplicated keyboard keys such as left versus right Shift or Numpad keys.