Key Value
Not detected
Online keyboard key detector for real-time KeyCode, key, code, location, and modifier checks during shortcut debugging and key mapping review
Current Key
Press a Key
Press any key on this page to update the event fields and key values in real time.
No modifier keys are active for the current event
Key Value
Not detected
Physical Code
Not detected
Key Region
Not detected
Last Captured
Not detected
Shows the character value or function key name from the current event.
Shows the legacy KeyCode field for older projects and browser compatibility checks.
Shows the physical key position, regardless of input method or keyboard layout.
Shows the region code, such as left side, right side, or numeric keypad.
Shows Meta, Shift, Ctrl, and Alt pressed together with the current key event.
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.
Copy button beside a field to copy that value only.Copy All Fields to copy the full event snapshot at once.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.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 as Numpad1 and NumpadEnter.key and code to avoid input-method or layout confusion.keyCode for legacy compatibility checks, but prefer key and code in modern projects.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.