Keycode & Event Inspector
Instantly get event.key, event.code, and legacy which values for any key press. Features modifier tracking, event history, and JSON export. 100% private.
How to Use
The Keycode & Event Inspector is a real-time diagnostic tool for keyboard interactions, helping developers understand how browsers interpret user input.
How to use this tool
- Focus: Ensure this browser tab is active.
- Press Key: Press any key or key combination on your keyboard. The tool captures
keydownevents instantly. - Inspect Values: View the primary Legacy which code, along with modern
event.keyandevent.codeproperties. - Track Modifiers: Active modifier keys (Shift, Ctrl, Alt, Meta) are highlighted in real-time.
- Export: Use the Copy JSON button to grab the complete event object for use in your unit tests or documentation.
About This Tool
Modern Input Handling
Keyboard event properties have evolved significantly. While legacy keyCode and which are still common in older tutorials, modern web development prioritizes event.key (the value) and event.code (the physical key).
Our inspector provides full visibility into the Event Anatomy, including location data (e.g., distinguishing between Numpad Enter and standard Enter), making it the ultimate workbench for building accessibility-compliant and internationalized input systems.
Why Use This Tool
Zero-Latency, Zero-Server
Input diagnostics require immediate feedback. DevToolKit's inspector runs **100% locally** in your browser main thread with zero server overhead. We don't log your keystrokes—your input stays private and local to your device.