Why Test Keyboard Keys & Anti-Ghosting Online?
Whether assembling a custom mechanical keyboard or inspecting for spilled liquid damage, mechanical switches can develop key chatter (double-typing) or dead contacts. Gaming and complex hotkey workflows also require N-Key Rollover (NKRO) without ghosting.
Key Metrics and Testing Tips
- N-key rollover (NKRO):Press multiple keys simultaneously. Standard membrane keyboards lock up after 3–6 keys; full NKRO mechanical boards register unlimited concurrent keys.
- Chatter check (double-firing keys):Tap a switch once. If the event counts rapidly register multiple strikes, the mechanical contact leaf is chattering.
- event.code versus event.key:
event.codereflects physical switch location regardless of keyboard layout;event.keyreflects the produced character.
How the conversion runs
The tester listens for real key events on the page and paints each key as it is pressed, so what you see is the browser's own event stream rather than a simulated layout. playClickSound() synthesises a short click with the Web Audio API the first time sound is enabled — there is no audio file — and the counters track which keys have been exercised and which the browser reports as held down. Because it hooks keydown and keyup, it also shows when a key never sends its release event, which is the classic stuck-key symptom.
Edge cases and hard limits
The browser can only report what the operating system delivers: media keys, function-row combinations captured by the OS, and shortcuts owned by the browser never reach the page, so they will look broken here while working elsewhere. Anti-ghosting and N-key rollover are hardware properties — this page can show that a simultaneous press was dropped, but it cannot prove the keyboard is at fault rather than the OS. Testing a laptop's built-in keyboard is fine; testing a Bluetooth keyboard adds its own latency.
Privacy: processed in your browser
Key events are read by the page itself so it can paint the layout; no keystroke is logged, transmitted or persisted, and closing the tab discards every counter.
Frequently asked questions
A key shows nothing — is it broken?
Not necessarily. The OS or browser may be swallowing it. Test the same key in a plain text field to compare before blaming the hardware.
Can it measure NKRO or anti-ghosting?
It can reveal dropped simultaneous presses, but the cause could be the keyboard, the port or the OS. It cannot certify a specification.
Why does my function row not register?
Those keys are usually intercepted by the operating system for brightness, volume or media control before any browser sees them.