Keyboard Tester

Press any key to see its label and physical code, and watch the on-screen keyboard light up. Use it to check a new keyboard, a laptop deck or a suspected stuck key.

Last key
—
Key code
—
Tested keys
0 / 75
Untested
75
Esc
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
PrtSc
`
1
2
3
4
5
6
7
8
9
0
-
=
⌫
Tab
Q
W
E
R
T
Y
U
I
O
P
[
]
\
Caps
A
S
D
F
G
H
J
K
L
;
'
Enter
Shift
Z
X
C
V
B
N
M
,
.
/
Shift
Ctrl
Win
Alt
Space
Alt
Win
Menu
Ctrl

Press each key once. Tested keys stay marked until you reset.

Untested keys

Esc · F1 · F2 · F3 · F4 · F5 · F6 · F7 · F8 · F9 · F10 · F11 · F12 · PrtSc · ` · 1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · 0 · - · = · ⌫ · Tab · Q · W · E · R · T · Y · U · I · O · P · [ · ] · \ · Caps · A · S · D · F · G · H · J · K · L · ; · ' · Enter · Shift · Z · X · C · V · B · N · M · , · . · / · Shift · Ctrl · Win · Alt · Space · Alt · Win · Menu · Ctrl

Laptop users: some F-keys need the Fn key. If the browser sees a media key instead, the printed label may differ from the reported key.

Desktop users: try each key individually. A key that produces no event may be blocked by the operating system or a keyboard utility, not necessarily broken.

All keyboard testing happens locally in your browser. Your keystrokes are not recorded or uploaded.

How to use

  1. 1.Click anywhere on the page, then press each key you want to test.
  2. 2.Watch the virtual keyboard highlight keys as they go down and clear when released.
  3. 3.Use the key label and code readout to confirm what the browser receives.
  4. 4.Press Reset Test to clear the tested-key tracking and start over.

How it works

  • The page listens for keydown and keyup events and matches them to KeyboardEvent.code, which describes the physical key position.
  • KeyboardEvent.key supplies the produced character, which can differ from the printed legend on your keycaps.
  • The tested-keys counter records which physical keys have sent at least one keydown event during this session.

Limitations and privacy

  • Browser and operating-system shortcuts may be intercepted before a page can see them, and some keys cannot be captured reliably. A missing key event does not prove that the key is defective.
  • Special combinations such as Ctrl+Alt+Del are handled by the operating system and never reach the browser.
  • Laptop keyboards may route some F-keys through a Fn layer, so the browser can see a different code than the printed label.
  • All keyboard testing happens locally in your browser. Your keystrokes are not recorded or uploaded.

Related tools

Frequently asked questions

How do I know if a key is broken?

Press the key on its own and check whether the on-screen key and the code readout respond. If nothing appears, try another browser and a different USB port before concluding the hardware is faulty.

Why does my key show a different label?

Physical key positions and produced characters are different things. The code follows the position, while the key value follows your operating-system layout.

Are my keystrokes recorded?

No. Key events are processed in the page and are never sent to a server or stored as text.

Does this work with wireless keyboards?

Yes. Any keyboard that pairs with your computer and sends standard key events can be tested.