Keyboard Ghosting & NKRO Tester
/test/104-Key ANSI / TKL / 60% Visualizer · Simultaneous NKRO Rollover · Switch Latency & Chatter · 100% Client-Side
How to Test Keyboard Keys, Ghosting & Switch Latency: Step-by-Step Guide
- Test Keys on the Interactive Visualizer: Choose your physical layout (104-Key ANSI, 87-Key TKL, or 60% Compact) on the toolbar. Press each key on your keyboard one by one. Verified keys immediately illuminate in green with persistent press counters, allowing you to instantly identify broken, unresponsive, or sticky keys.
- Benchmark Simultaneous Key Rollover (NKRO): Switch to the NKRO & Ghosting tab. Rest multiple fingers across the keyboard and press them down simultaneously. The real-time meter tracks your active key count and records your peak simultaneous rollover (2KRO, 6KRO, or Full NKRO).
- Validate Gaming Anti-Ghosting Chords: Select popular gaming movement combinations like FPS Sprint & Strafe (W + A + Shift + Space) or MOBA Skill Chords to verify that your keyboard controller registers all keys cleanly without blocking or phantom inputs.
- Detect Mechanical Switch Chatter & Bounce: Open the Switch Chatter & Latency tab. Tap switches rapidly. If contact oxidation or worn mechanical leaves produce unintended double-activations below the calibrated debounce threshold (e.g. < 20ms), the system alerts you with the exact failing switch name.
- Inspect Raw Event Stream & Export Telemetry: On the Event Stream & Codes tab, view live DOM
KeyboardEventtelemetry includingcode,key,keyCode, location, and press durations in milliseconds. Click Copy JSON or Copy CSV to export your diagnostic audit.
The Anatomy of Keyboard Input: Matrices, Diodes & Anti-Ghosting Architecture
Every physical keystroke begins as a mechanical electrical event. Underneath keycaps, keyboards contain an electrical matrix composed of intersecting rows and columns monitored by an onboard micro-controller (MCU). When you depress a key, electrical contact is established at the intersection, allowing the MCU to detect which row and column circuit has been completed.
In basic membrane and consumer keyboards, keys share interconnected traces without isolation. When users press complex multi-key combinations—such as pressing W, A, and Shift while attempting to jump with Space—current leaks through adjacent closed switches, confusing the controller. To prevent false "ghost" characters, manufacturer firmware aggressively suppresses subsequent inputs, causing critical keys to fail to register ("ghosting" or "jamming").
High-performance mechanical keyboards solve this by soldering a discrete diode (1N4148 or equivalent surface-mount diode) in series with every single switch. These diodes act as one-way electrical check valves, completely blocking reverse current flow across the matrix. This enables true N-Key Rollover (NKRO), guaranteeing that every single key depressed simultaneously will register cleanly with zero drops.
Understanding Switch Chatter: Why Mechanical Keyboards Double-Type
Mechanical key switches (such as Cherry MX, Gateron, Kailh, Outemu, and Razer switches) utilize flexible metal leaf springs that make physical contact to close an electrical circuit. Due to the physical laws of elasticity and momentum, when these metal contacts strike each other, they don’t establish instant continuous contact—they physically vibrate and bounce for a few milliseconds before settling.
To filter out these micro-bounces, keyboard firmware implements debouncing algorithms (typically introducing a 5ms to 15ms delay before confirming an actuation). However, as switches accumulate microscopic dust particles, moisture, or contact oxidation over years of heavy typing or gaming, the bounce duration increases significantly. When the bounce extends beyond the firmware debounce window, the keyboard sends multiple rapid keydown events from a single physical tap—known in the mechanical keyboard community as switch chattering.
Our switch chatter diagnostic tool benchmarks consecutive keydown/keyup timestamps. If an actuation re-triggers in under 20ms, it indicates degraded electrical contacts. If caught early, chattering switches can frequently be restored by flushing the switch housing with high-purity electrical contact cleaner (isopropyl alcohol) or replacing the hot-swappable switch module without discarding the entire keyboard.
Frequently Asked Questions (FAQ)
How does this online keyboard tester detect pressed keys and keycodes? ↓
This tool listens directly to the browser’s native DOM KeyboardEvent stream (specifically keydown and keyup events). It captures both physical hardware scan codes (event.code, representing the physical key location such as KeyW, Space, or ShiftLeft independent of language layout) and translated virtual characters (event.key and legacy keyCode / which). Key events are recorded with microsecond timestamps via performance.now() to map held keys and compute press durations in real time.
What is keyboard ghosting, and why does it occur on budget keyboards? ↓
Keyboard ghosting is a physical hardware limitation found on membrane and low-cost office keyboards. In standard matrix wiring, individual keys share intersecting electrical rows and columns rather than having isolated diodes per switch. When three adjacent keys in a triangular matrix loop are pressed at the same time, electrical current flows backward through the closed circuit, causing the keyboard controller to either register an unpressed fourth phantom key ("ghosting") or drop one of the pressed keys completely ("key masking" or jamming).
What is the difference between 2KRO, 6KRO, and full N-Key Rollover (NKRO)? ↓
2KRO (2-Key Rollover) only guarantees that any two simultaneous keys will register without jamming; pressing a third key often drops the input. 6KRO (6-Key Rollover) is the traditional USB Human Interface Device (HID) standard limit, allowing up to 6 simultaneous alphanumeric keys plus 4 modifier keys (Shift, Ctrl, Alt, Meta). Full NKRO (N-Key Rollover) is standard on high-performance mechanical gaming keyboards equipped with individual electrical diodes per switch. It allows every single key on the keyboard to be pressed down simultaneously without any dropped inputs.
What is mechanical switch chatter (debounce fault) and how is it detected? ↓
Mechanical key switches operate using physical metal contact leaves that collide when actuated. When a switch ages, accumulates dust, or suffers from contact oxidation, the metal contacts can physically bounce against each other during a single finger press. This electrical bounce produces two or more rapid keydown actuations within 5 to 25 milliseconds, causing frustrating double-typing (e.g. typing "tthe" instead of "the"). This tool continuously monitors time deltas between consecutive presses; any re-actuation under your chosen threshold (default 20ms) is immediately flagged as a switch chatter fault.
Why do certain browser hotkeys like F5, Tab, and Space normally disrupt testing? ↓
By default, web browsers reserve specific keys for page navigation: pressing Space scrolls down, Backspace or Alt+Left can navigate back, Tab shifts focus to the address bar, and F5 reloads the webpage. Our tester includes an intelligent Trap Hotkeys safety gateway enabled by default that intercepts these events via event.preventDefault(), allowing you to test every Function key, modifier, and navigation key safely without triggering browser actions.
Does this keyboard tester record or send my keystrokes to a server? ↓
No. Absolutely zero keystroke data is ever recorded, stored, or transmitted. The entire testing suite executes 100% client-side inside your browser’s local JavaScript sandbox. There are no analytics trackers, no backend API calls, and no remote logging. When you refresh or close the tab, all memory buffers are instantly purged.