Keyboard tester
Press each key and watch it light up
Press keys one at a time to check each one works, or hold several down to see how many your keyboard reports at once. Nothing you press is sent anywhere.
Press any key. Keys light up while held down and stay marked once they have worked. Click Reset to start over.
–
- event.key
- –
- event.code
- –
- Location
- –
- Keys held now
- –
- Most held at once
- –
- Keys tested
- –
How to test a keyboard
Press each key once. A key turns solid green while it is held down and stays marked once it has worked, so after a pass you can see at a glance which keys never lit up. Reset clears the marks.
The drawing is a full-size US keyboard. Keys are matched by their position code, so a key works the same on other layouts, though its label may differ from yours. Keys that are not on the drawing, such as media keys, are listed under the result when they send anything.
What the values mean
- event.key is the character or name the key produces, so it changes with Shift and with your layout.
- event.code is the physical position, such as KeyA, whatever the layout.
- Location tells left keys from right keys (the two Shift keys) and the number pad from the main keys.
Several keys at once
Keys held now and Most held at once show how many keys the keyboard reports together. Many keyboards stop at a few keys in some combinations, which is called ghosting or limited rollover. Try the combinations you use in games.
Keys the page cannot see
Your system keeps some keys for itself, so they may never reach the page: Fn, some media keys, and shortcuts such as Alt+Tab or Ctrl+W. Print Screen often reports only when released. Tab keeps its usual job of moving between buttons, so you can always leave the page with the keyboard; it still lights up. A key that does not light up here may still be fine; check it in another program before replacing anything.