DevTools Logo

Keyboard Tester

Keyboard Tester

See every key light up live, then find stuck keys, chatter and rollover limits in one session.

Runs in your browser

Keys are read in this tab only, and the report exports codes rather than typed characters. Browser shortcuts are never blocked, so F5, Ctrl+L, Tab and Space keep their normal behavior. Do not type passwords into any web tool.

Load a sample session

Live keyboard

0 held · 0/104 tested
Coverage0/104 positions · 0%

0 held now · max 0 at once · 0 stuck · 0 bounce events

Diagnostics

0/200 events

Start typing on your keyboard

Keycaps light up as you press keys. Stuck keys, chatter and rollover appear here.

Examples

Dead key after a spill

Input
Type the home row slowly, including the suspect key: KeyA KeyS KeyD KeyF
Output
KeyA, KeyS, KeyD light; KeyF stays idle; coverage 3/4 on those positions

An unlit position after a deliberate press is the first clue. Repeat across the whole grid before concluding that a switch has failed.

Sticky shift

Input
Hold ShiftLeft for 3 s, including OS auto-repeat, then release it
Output
ShiftLeft turns amber after 2 s with a stuck-key warning; release returns it to idle

Repeat keydowns do not hide a jammed key: the timer starts at the first keydown and ends only on keyup.

Bouncing switch

Input
KeyS down, up 15 ms later, down again; then the same at a 50 ms gap
Output
Chatter count for KeyS is 1 — the 15 ms gap counts, the 50 ms gap does not

The detector uses the event timeStamp, so a busy main thread does not turn a fast bounce into a slow press.

About this tool

The Keyboard Tester draws a full-size virtual keyboard that reacts to the keys you press on your own hardware. Choose an ANSI 104, ISO 105 or Mac position set, then type naturally: every keydown lights the matching keycap and every keyup puts it back to idle. Because the layout is keyed by event.code — the physical position JavaScript reports — the grid maps to the same keys whether your operating system speaks QWERTY, AZERTY, Dvorak or something else. The keycap label toggle switches between that stable code, the event.key actually observed on your system, and the deprecated keyCode number still used by older code.

The diagnostics go well beyond a light-up grid. A key that stays down for two seconds without a keyup is marked as stuck, even when the operating system keeps sending auto-repeat keydowns; that distinction matters because a jammed switch repeats continuously and would never be caught by a detector that treated repeats as proof of life. Releasing the key clears the amber flag immediately, so a deliberate long hold is an expected, reversible result rather than a permanent error. Pressing a key again within 20 ms of its release increments that key's chatter counter, which is the signature of a bouncing mechanical switch.

Rollover is measured as the largest number of keys the browser reported at the same time, alongside the live count while you hold a chord. Some keyboards and USB stacks deliberately drop keys in large combinations, and browser-reserved shortcuts can be swallowed by the operating system before JavaScript sees them; the tool reports what it actually received rather than guessing what your hardware could do. Duplicate keydowns with no release and unmatched keyups are collected in a suspicious-event list. Those patterns can accompany ghosting or a dropped release, but a page cannot know which keys your fingers physically touched, so they are investigation flags rather than a verdict.

The coverage tracker turns the grid into a checklist: tested positions fill the progress bar, and compact or laptop scopes remove the numpad, navigation cluster and function row that a small board may not have. Any individual position can also be marked as not on my keyboard. A 200-event log keeps the most recent codes and times, and clicking a row highlights its keycap. The session summary exports codes only — never the characters you typed — as JSON. Everything happens in the tab: no keystrokes are uploaded, no result is persisted, and page scrolling, Tab navigation and browser shortcuts keep their normal behavior.

What this tool does not do

  • A held key is flagged after two seconds regardless of intent; the flag clears as soon as its keyup arrives.
  • Ghosting cannot be proven in a browser: duplicate keydowns and unmatched keyups are reported as flags, not a hardware verdict.
  • Fn, media and some OEM keys emit no KeyboardEvent, so they cannot light up and must be excluded from coverage manually.
  • Reserved browser and OS shortcuts (F5, F11, Ctrl/Cmd+L, StickyKeys dialogs) are not intercepted; they may reload, navigate or blur the session, and nothing is persisted.
  • Mobile and IME keyboards often emit Unidentified key events; use a physical keyboard for meaningful hardware diagnostics.
  • Key and keyCode labels shown before a key is observed are US-layout references; event.key values from non-US layouts appear only after a real event from that key.

How to use this tool

  1. Choose a layout and label mode

    Select ANSI 104, ISO 105 or Mac to match your board, then pick event.code, observed event.key or keyCode for the keycap labels.

  2. Press keys across the board

    Type normally with a physical keyboard. Pressed keycaps highlight, the coverage meter advances, and the diagnostics panel records rollover, chatter and suspicious events.

  3. Scope the coverage checklist

    Use compact or laptop scope to drop whole key blocks, or click a keycap and mark it not on my keyboard. Reset coverage keeps the diagnostic history.

  4. Read or export the session

    Inspect stuck keys, bounce counts and the last 200 events; click a log row to highlight its keycap. Copy or download the summary when you need to share codes with a forum or repair shop.

Use cases

Diagnosing a laptop after a spill

Press every reachable position and read the coverage meter. Scope out keys the laptop does not have, then check the amber stuck list for a switch that stays down.

Verifying NKRO claims

Hold a large chord and compare the live and maximum rollover counters. Suspicious duplicate or unmatched events highlight combinations where the browser or hardware dropped a key.

Teaching keyboard events

Switch the label mode while pressing the same physical key on a non-US layout. Students see event.code hold steady while event.key and keyCode change with the system layout.

What the keyboard tester measures

SignalHow it is reported
event.codePhysical key position such as KeyA or Numpad1 — stable across keyboard layouts
event.keyThe character or key name your layout produced, read from your actual events
keyCodeDeprecated legacy number shown from live events, with a US reference before a key is observed
Stuck keyNo keyup for 2 s; auto-repeat does not restart the timer; release clears the flag
ChatterA press within 20 ms of that key's release, counted per code
RolloverLive held-key count and the session maximum — only keys the browser delivered
Suspicious eventsDuplicate keydowns and unmatched keyups that may point at ghosting or dropped events

Fn and media keys usually emit no browser KeyboardEvent, so they can never appear as lit keycaps; mark them not on my keyboard in the coverage checklist.

Common mistakes

Mistake:Treating a long hold as a broken key.

Fix:The stuck flag means only that no keyup arrived within two seconds. A deliberate hold is flagged the same way a jam is; release the key and the amber state clears.

Mistake:Assuming a raw rollover count proves ghosting.

Fix:The browser reports only events it receives. Duplicate keydowns and unmatched keyups are useful flags, but a page cannot know which keys were physically pressed or which combinations the OS swallowed.

Mistake:Testing with browser-reserved shortcuts.

Fix:F5, F11, Ctrl/Cmd+L and similar combinations act normally because the tool never calls preventDefault. Use ordinary characters and modifiers for the diagnostic, then note reserved combinations separately.

Frequently asked questions

How do I find a stuck key?

Type across the grid and watch for a keycap that stays lit. If a key has no keyup for two seconds, it turns amber and its event.code appears in the stuck list and warning banner. Releasing the key clears the flag immediately. Auto-repeat keydowns do not restart the timer, because a physically jammed switch repeats continuously too — so a deliberate long hold is flagged in exactly the same way and clears on release.

What is key rollover or NKRO?

Rollover is the number of keys a keyboard and computer can report at the same time. NKRO means n-key rollover, in principle every key at once; many boards are limited to 6KRO or a smaller set. The tester shows the live count of keys it has seen held and the maximum reached during this session, so you can hold a chord and read the real result instead of a specification on a box.

Why do some key combinations not register?

Two things can swallow a combination before JavaScript sees it: hardware or USB rollover limits, and operating-system or browser shortcuts. F5, F11, Ctrl/Cmd+L and similar keys act normally here because the tool never blocks browser defaults. Duplicate keydowns and unmatched keyups in the suspicious-event list are useful clues, but a page cannot know which keys were physically pressed, so it cannot prove ghosting on its own.

Does this work on Mac and non-US layouts?

Yes. Pick ANSI 104, ISO 105 or Mac as the visual layout. The grid is keyed by event.code, which names the physical position and does not change with your system layout. Press the physical A position on AZERTY and event.code stays KeyA while the observed event.key is q. Key and keyCode labels printed on untouched keycaps are US references; after a key is pressed, its cap shows the values your browser actually reported.

Can it detect key chatter?

Yes. If a key is pressed again within 20 milliseconds of its release, that code's chatter count increases and a warning appears. The detector uses the event timestamp rather than when the handler happened to run, so a busy main thread does not distort a 15 ms bounce into a slower press. Pressing the same key with a 50 ms gap is ordinary typing and is not counted.

What does the coverage percentage mean?

It is the share of positions in the selected layout that you have pressed at least once. Compact scope removes the numpad; laptop scope also removes the navigation cluster and function row. You can click any keycap and mark it not on my keyboard, which removes it from the total. Only keys the browser actually delivered count as tested, so Fn and media keys that emit no event should be excluded manually.

Are my keystrokes sent anywhere or stored?

No. The keyboard events, diagnostics and event log live only in this tab's memory and disappear when you leave or reset. The JSON summary exports physical codes and counters — never the characters you typed — so it is safe to share as text. The page does not intercept browser shortcuts or type into any field. As with any web tool, avoid typing passwords or other secrets while testing.

References & standards