Keyboard Tester

🎹 点击下方输入框后按下任意按键测试 / Click the input below, then press any key to test. 支持键盘事件检测,含修饰键与状态灯。
Caps Lock: off
Num Lock: off
Scroll Lock: off
Esc
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
` ~
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
Ctrl

⌨️ 按下任意键,对应按键会高亮显示(含修饰键实时状态)

等待按键事件... / Waiting for key events...
暂无记录 / No records yet

💡 提示:本工具完全在浏览器本地运行,按键数据不会上传到任何服务器。

What is Keyboard Tester?

This keyboard tester runs entirely in your browser. Press any key and it shows the key value, physical code, keyCode, and location immediately, while highlighting the matching key on a rendered virtual keyboard. It also tracks modifier keys (Ctrl, Shift, Alt, Meta), the three lock indicators (Caps Lock, Num Lock, Scroll Lock), and a full press history with repeat counts — useful for spotting stuck or double-registering keys. Nothing you type is recorded or uploaded. Use it to check a brand-new keyboard, diagnose a mechanical keyboard, or verify key bindings for gaming.

Use Cases5 scenarios
  • Verifying every key on a brand-new keyboard
  • Diagnosing dead, stuck, or double-registering keys
  • Confirming modifier combinations work
  • Checking Caps Lock / Num Lock / Scroll Lock indicators
  • Testing key bindings before a gaming session
How to Use5 steps
  1. 1Open the page — no install or signup needed
  2. 2Press the key you want to test and watch it light up
  3. 3Read the key, code, keyCode, and location details
  4. 4Hold Ctrl/Shift/Alt to verify modifier tracking
  5. 5Check the history to confirm no repeats or misses
Features8 features
  • Free
  • No signup
  • Real-time key detection
  • Visual virtual keyboard
  • Modifier + lock indicator tracking
  • Press history with repeat count
  • 100% in-browser
  • Works on mobile
FAQ7 questions
What is a keyboard tester?

An online key-detection tool. Input: your keyboard presses. Output: key, code, keyCode, and location for each press, plus modifier state (Ctrl/Shift/Alt/Meta) and Caps Lock, Num Lock, Scroll Lock indicators. Used for keyboard acceptance testing, fault diagnosis, and game key binding. Everything runs locally in your browser — no data is uploaded.

How do I test my keyboard?

Just open the page and press any key. The pressed key lights up on the virtual keyboard and shows its key, code, keyCode, and location.

Does it detect modifier keys?

Yes. Ctrl, Shift, Alt, and Meta are tracked in real time — hold any combination to verify it.

Does it show Caps Lock / Num Lock / Scroll Lock?

Yes. Three lock indicators at the top reflect the state of Caps Lock, Num Lock, and Scroll Lock in real time.

Why does some key show Unidentified?

A few special keys (like media keys) have no standard key value in some browsers, so they show Unidentified. That is a browser limitation, not a keyboard fault.

Is my typing uploaded anywhere?

No. All detection happens locally in your browser. Nothing is sent to a server.

Does it work on mobile?

Yes. The layout is responsive and works with an external keyboard on touch devices.