Test My Keyboard
Test every key on your keyboard with a visual layout
Keys Tested
0 of 60
Key Code
--
Key Value
--
`
1
2
3
4
5
6
7
8
9
0
-
=
Backspace
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
Alt
Meta
Space
Meta
Alt
Ctrl
How it works
Press any key on your keyboard to test it. Each key will highlight when pressed and stay highlighted once tested. This tool uses the KeyboardEvent.code property to identify physical key positions, making it layout-independent. Use it to verify all keys on your keyboard are working correctly.
Frequently Asked Questions
How does the keyboard tester work?
The tester listens for keyboard events (keydown and keyup) in your browser. When you press a key, it highlights that key on the visual layout and logs the key code, key name, and event type. Released keys change to a different color.
Can this detect stuck or broken keys?
Yes. If a key doesn't highlight when pressed, it may not be registering. If a key stays highlighted after release (no keyup event), the key might be physically stuck. This is a quick way to verify keyboard functionality.
Why do some keys not register?
Some key combinations are captured by the operating system before reaching the browser (e.g., Cmd+Q on Mac, Win+L on Windows). Function keys and media keys may also be intercepted. The browser only receives events that the OS passes through.
What are key codes?
Key codes are numeric or string identifiers for each key. Modern browsers use the 'key' property (like 'Enter', 'a', 'Shift') and 'code' property (like 'KeyA', 'ShiftLeft') to identify keys. The older numeric keyCode property is deprecated but still widely used.