Quick Answer
Press Start testing, then press every key on your keyboard one by one. Each key turns green while you hold it and stays light green once it has been pressed. If a key never lights up, it may be broken, stuck or remapped. Press Clear to start over.
Embed this calculator
Adjust the size if needed, then copy the code below into your page or blog. The calculator will load in an iframe and stay updated automatically.
Table of Contents
- Keyboard Tester
- Quick Answer
- Related Calculators
- How This Keyboard Tester Works
- How to Use the Keyboard Tester
- How Keys Are Detected
- Key Terms
- Worked Example
- Real-Life Examples
- Key vs Key Code
- Keys Browsers Often Cannot See
- If a Key Does Not Work
- Common Mistakes to Avoid
- Frequently Asked Questions
- References & Sources
How This Keyboard Tester Works
When a key stops working, it is hard to know whether the problem is the key, the keyboard or the software. This tester shows a keyboard on screen and lights up each key the moment your browser receives it. Press every key once, and any that stay white are the ones to check.
What you see:
- Dark green: the key is being held down now.
- Light green: the key has worked at least once.
- White: not pressed yet, or not reaching the browser.
- Details: the last key's name and position code.
How to Use the Keyboard Tester
- Press Start testing.
- Press each key on your keyboard once.
- Watch each key light up on the screen keyboard.
- Look for keys that stay white.
- Press Clear to test again.
How Keys Are Detected
- Key events: the browser sends a keydown event when a key goes down and keyup when it comes up.
- Position code: each event includes a code for the physical key, such as KeyA or ShiftLeft, which does not change with the keyboard language.
- Key value: also shows the character it types, such as a or A.
- Progress: keys pressed ÷ keys shown × 100. The full layout shows 84 keys.
Key Terms
- Keydown: the event sent when a key is pressed.
- Key code: the physical position of a key, such as KeyA.
- Layout: the language arrangement of a keyboard, such as US QWERTY.
Worked Example
You press every key on a laptop and 75 of the keys shown light up.
- Look for the white keys: say the J key and Right Shift stay white.
- Press J again firmly: if it still does not light up, the key or its connection is faulty.
- If Right Shift works in other apps, it may be remapped by software.
- Keys like Fn never light up, because the laptop handles them itself.
Real-Life Examples
- Used keyboards: test every key before buying.
- Spills: check which keys still work after a drink spill.
- Gaming: hold W, A and Shift together to see if all three register.
- New laptops: confirm every key works within the return period.
Key vs Key Code
- Key: the character a key types, which changes with Shift and the keyboard language.
- Code: the physical key position, the same whatever the language.
- This tester: lights keys by code, so it works with any layout.
Keys Browsers Often Cannot See
| Key | Why |
|---|---|
| Fn | Handled by the keyboard or laptop itself |
| Print Screen | Often taken by the operating system |
| Media and volume keys | Usually handled by the operating system |
| Windows or Command shortcuts | Some combinations are taken by the system |
If a Key Does Not Work
- Clean it: crumbs and dust often stop a key from pressing fully.
- Try another port or receiver: for USB and wireless keyboards.
- Check batteries: wireless keyboards lose keys when batteries are low.
- Check the layout setting: a wrong language layout can make keys type different characters.
- Check key remapping software: it can change what a key does.
Common Mistakes to Avoid
- Not pressing Start. Keys are only tracked after you press Start testing.
- Typing in another box. Click outside text boxes before testing.
- Expecting Fn to light up. It never reaches the browser.
- Judging a key from one press. Press stubborn keys a few times.
- Assuming hardware is faulty. Check layout and remapping settings first.
Frequently Asked Questions
Press Start testing, then press each key and watch it light up.
It has not been detected: it may be broken, stuck or handled by your computer.
Fn is handled by the keyboard itself and is not sent to the browser.
Yes. Keys are matched by position, so any layout works.
Yes. Keys held together all turn dark green.
No. Nothing is sent or saved.
Phone on-screen keyboards do not send the same key events; use it with a physical keyboard.
The operating system usually takes that key before the browser sees it.
Yes. Any keyboard connected to the computer works.
Hold several keys at once, such as W, A, S and Shift, and see whether all of them stay dark green. If one does not light up while the others are held, the keyboard cannot register that combination.
Yes. It works with any keyboard your computer recognises, including mechanical, wireless, Bluetooth and gaming keyboards.
Yes. There is no sign-up or download.
Keys such as the space bar and arrows normally scroll the page, so the tester blocks that while testing. Press Clear to stop testing.
References & Sources
| Source | Used For | Link |
|---|---|---|
| MDN Web Docs, KeyboardEvent.code | Physical key codes used to light up keys. | https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code |
| W3C, UI Events KeyboardEvent code Values | The standard list of key codes. | https://www.w3.org/TR/uievents-code/ |