Keyboard Test
Test your real keyboard and watch it on screen: keydown / keyup listeners on the window light up the matching key on a clickable on-screen keyboard in real time, every key you have pressed keeps a tested mark, and the keys you have not reached yet stay easy to spot. It also shows Num Lock / Caps Lock / Scroll Lock indicators (the toggles observed in this session), a Windows / Mac full-size layout switch and a key detail panel. The event log lists key, code, keyCode and modifiers for every press and reports peak simultaneous keys (n-key rollover), chatter, average hold time and combos; codes outside the layout, such as media keys, are listed separately instead of being dropped.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Keyboard key check
Put the cursor anywhere on the page and press keys (no cell to click). The on-screen keyboard lights up the matching key, and every row in the table comes from a real KeyboardEvent: key / code / keyCode / modifiers / auto-repeat. Typing inside the controls above is not recorded.
Press keys on the page: the on-screen keyboard lights up the matching key, and every key you have pressed is marked as tested.
Nothing captured yet: press any key (letters, digits, Ctrl / Shift / Alt / Meta, arrows, F1–F12) and the matching key on the on-screen keyboard lights up.
- Events
- 0
- Distinct keys
- 0 keys
- Combos
- 0
- Peak held
- 0 / 6 keys
- Chatter
- 0
- Average hold
- 0 ms
- Auto-repeat
- 0
Hover a key on the on-screen keyboard — or just press it — to see its code, press count and hold time here.
Chatter · Average hold · Auto-repeat
Clearing the capture also clears the marks on the on-screen keyboard.
What this tool does
- Hunt for a dead key: press the keys one by one and treat anything that never lights up on the on-screen keyboard — or stays in the not-pressed-yet list — as the suspect, then check the event log for a matching keydown.
- Work through the on-screen keyboard key by key: click a key to pin its code, press count and hold time, which separates a key that never fires from one that drops the occasional press.
- Test mechanical chatter: set the chatter window to about 40 ms, tap one key fast and watch the chatter counter.
- Test rollover: hold several keys at once and see how high the peak-held figure goes.
- Verify combos: hold Ctrl / Shift / Alt / Meta with a letter and read the combo and modifier columns.
- Switch to the Mac layout to test ⌘ / ⌥ / ⌃ and F13–F15: the Mac full-size layout has 91 keys, its bottom row reads ⌃ / ⌥ / ⌘ and the first row of the nav block is F13–F15.
Example
Input
Press a and release, then Shift+a, then hold a, s, d, f, j and k together
Output
Captured 13 events (down 9 · up 4) · last key K · peak held 6 keys On-screen keyboard: pressed keys light up, every key you have pressed keeps a tested mark, the progress line reads "Tested / 92 keys" (92 = the Windows full-size layout) and the keys still missing are listed as not pressed yet Event #1 down a → key a · code KeyA · keyCode 65 · modifiers none Event #2 up a → key a · code KeyA · keyCode 65 Event #3 down a → key A · code KeyA · keyCode 65 · modifiers Shift (combo Shift+A) Event #4 up a → key A · code KeyA · keyCode 65 Stats: 13 events · 7 distinct keys · 1 combo · peak held 6 / 6 keys · 0 chatter runs · average hold 168 ms
Frequently asked questions
How do I start?
There is no grid to click: the page listens for keydown / keyup on the window, so pressing keys while the page is focused is enough and the matching key on the on-screen keyboard lights up as you go. Inputs in the controls are excluded, so tuning the options never pollutes the capture.
What do the marks on the on-screen keyboard mean?
A key lights up while you hold it, keeps a pressed (tested) mark after you let go, and stays plain if you have never pressed it. The press counter only counts independent presses, so auto-repeat from holding a key down does not inflate it.
How do I see which keys are still untested?
The tested line counts against the key total of the layout you selected, and the not-pressed-yet list names the missing codes in layout order, up to 12 of them followed by an ellipsis; once every key in the layout has been pressed it says so. Codes that are not part of the layout, such as media keys, are excluded from that total, listed separately and still kept in the event log. Clearing the capture also clears the marks.
Do the lock indicators show the real state of my keyboard LEDs?
No. Browsers cannot read the Num Lock / Caps Lock / Scroll Lock lamps, so the page only sees the events of those three keys: the indicators show the toggles observed in this session, flipping once per independent press and going back to off when you clear the capture. A toggle made by the system or by another app will not show up here.
What is the difference between the Windows and the Mac layout?
Windows full size has 92 keys and Mac full size has 91, because the Apple keyboard has no Menu key: the Mac bottom row reads ⌃ / ⌥ / ⌘ with a wider right-hand ⌘, the first row of the nav block becomes F13–F15, and Insert / Delete are labelled Help / ⌫ Del. Switching the layout keeps the capture, but the tested count is recomputed for the new layout — F13–F15 only count as layout keys on Mac.
What are key, code and keyCode?
`key` is the character value (Shift turns `a` into `A`), `code` is the physical position (`KeyA` on every layout) and `keyCode` is the legacy numeric code. All three are read from the real event and never guessed.
How is the peak held figure used for rollover?
Every keydown adds a physical key to the held set and every keyup removes it; the largest set size is the peak. Auto-repeat from holding a key never counts the same key twice. Reaching the target you set in the controls reports a pass.
How is chatter detected?
Two independent presses of the same physical key within the chatter window count as one run; auto-repeat is excluded. Worn contacts or failing springs push this number up quickly.
Is anything uploaded?
No. Everything stays in the memory of this page, no request is made, and a refresh or “Clear capture” wipes it. When the window loses focus the browser stops sending keyup, so the page adds one release row to avoid keys that look stuck forever.
Keywords:keyboard teston-screen keyboardvirtual keyboard