What Is Keyboard Key Detector
Keyboard Key Detector shows key, keyCode, code, location, and modifier data from the current keyboard event in real time. It is useful for KeyCode lookup, shortcut debugging, and key-mapping checks.
How to Use This Tool
- Open the page and press any key while staying on the current page.
- The tool updates the current key, KeyCode, Code, Location, and Modifiers instantly.
- Use the
Copybutton beside a field to copy that value only. - Use
Copy All Fieldsto copy the full event snapshot at once. - Review the documentation section below for field meaning and location code notes.
Field Meaning
key: the character value or function key name from the event.keyCode: the legacy compatibility value for older scripts.code: the physical key position, helpful for mappings and shortcuts.modifiers: active Meta, Shift, Ctrl, and Alt keys during the event.
Location Codes
0: standard area for most letters, numbers, arrows, and common function keys.1: left-side keys such as Left Shift, Left Ctrl, and Left Alt.2: right-side keys such as Right Shift, Right Ctrl, and Right Alt.3: numeric keypad keys such asNumpad1andNumpadEnter.
Typical Use Cases
- Frontend keyboard-event debugging
- Browser shortcut conflict checks
- Web game key mapping tests
- Admin-panel hotkey verification
Notes
- Hold Ctrl, Shift, Alt, or Meta to see modifier combinations update in real time.
- When checking shortcut conflicts, compare both
keyandcodeto avoid input-method or layout confusion. - Use
keyCodefor legacy compatibility checks, but preferkeyandcodein modern projects.
Privacy and Compatibility
This tool runs fully in your browser and does not upload any key data. keyCode is kept for legacy compatibility, while modern projects should prefer key and code.