Keyboard Inspector Pro

Full keydown/keyup analysis · hold duration · modifier detection · event stream

Key
Code
KeyCode
Which
Hold Time
Delay
Timestamp
Repeat
Shift Ctrl Alt Meta CapsLk
Event Stream
#EventKeyCodets (ms)Hold (ms)Delay (ms)
Enable inspector and press keys to see events

Results are estimates based on browser event timing. Actual hardware values may vary due to OS scheduling and browser overhead.

The Keyboard Inspector Pro is a real-time key event analyzer that shows every detail of each keypress: the exact key name, physical code, legacy keyCode, hold duration, inter-key delay, repeat status, and all modifier states. Perfect for debugging keyboard issues, testing macros, or understanding how games read your input.

Understanding Key Events: key vs code vs keyCode

When you press a key, the browser fires events with three different identifiers that serve different purposes:

  • key: The logical value produced — changes with Shift and keyboard layout. Pressing Shift+A gives "A", pressing A alone gives "a".
  • code: The physical key location — never changes regardless of layout. Pressing the A key on any layout always gives "KeyA".
  • keyCode: Deprecated numeric code — legacy property kept for compatibility. Games often still use these numeric values for input mapping.

For game developers: use event.code for WASD movement (layout-independent) and event.key for text input.

What the Hold Duration Tells You

Hold duration is the time between keydown and keyup events in milliseconds. This reveals your actual keystroke timing:

  • 10–50ms: Extremely fast gaming taps — common in rhythm games and CS2 counter-strafing
  • 50–150ms: Normal gaming keypresses
  • 150–300ms: Deliberate presses — typing, normal gaming movement
  • <5ms: Possible switch bounce/chatter — contact switches re-firing

How to Diagnose Keyboard Problems

Use the event stream to identify specific issues:

  • Double keydown without keyup: Switch chatter — the mechanical contacts are bouncing, registering as multiple presses
  • Missing keyup events: Stuck keys — check for debris under the keycap or switch stem binding
  • Wrong key values: Incorrect keyboard layout set in your OS — check Windows language/input settings
  • High delay between keys: CPU load or browser tab throttling — ensure page is focused and no heavy background processes
🔍

Gaming Use Case: If a game isn't registering a specific key, use the inspector to confirm the OS is actually receiving the event. If the key shows up here but not in-game, the issue is the game's input mapping — not your keyboard hardware.

Frequently Asked Questions — Keyboard Inspector Pro

Scroll to Top