How to test your keyboard
- Press Start. While the test is on, key presses are captured by this page, so keys like Tab and Space won’t scroll or move around the page.
- Press every key once. Each key turns green when it works, and lights up while you hold it.
- Check the list of keys not yet pressed. Any key that stays gray after pressing may be faulty.
- Press Stop when you’re done, so the page works normally again.
The board shows a standard US layout. If your keyboard has extra keys, such as a number pad or media keys, they’re listed separately when pressed.
If a key doesn’t work
- Try another app. If the key works elsewhere, the problem may be a shortcut or setting in one program.
- Clean it. Turn off the computer and use compressed air around the key. Crumbs and dust are a common cause.
- Check the connection. Reconnect a wired keyboard, or charge or re-pair a wireless one.
- Check the layout. If keys type the wrong characters, your computer’s keyboard language may not match the keyboard.
- Update the driver or try the keyboard on another computer to see whether the fault is the keyboard.
Ghosting and rollover
Some keyboards can’t register certain keys pressed at the same time, called ghosting. Hold several keys together and see which ones light up. Gaming keyboards often advertise “n-key rollover”, meaning any number of keys can be pressed at once.
Some keys can’t be tested in a browser
The operating system keeps some keys for itself. The Windows key, Print Screen, Fn and some media keys may not reach the page, and shortcuts such as Ctrl+W or Alt+F4 still work while the test runs, so avoid them. A key that doesn’t show here may still work.
Key codes
The last key you press is shown with its key value, its code, which names the physical key such as KeyA, and the older numeric key code. Developers use these to check keyboard events.
Your key presses stay on this page. They aren’t saved or sent anywhere. To practice typing, try the typing speed test.
Reading the keyboard test result
The counter at the top says how many keys on the board work, out of 84. The board has seven rows:
| Row | Keys | Count |
|---|---|---|
| Function row | Esc and F1 to F12 | 13 |
| Number row | ` and 1 to 0, minus, equals, Backspace | 14 |
| Top letter row | Tab, Q to P, brackets, backslash | 14 |
| Home row | Caps, A to L, semicolon, quote, Enter | 13 |
| Bottom letter row | both Shift keys, Z to M, comma, period, slash | 12 |
| Space row | both Ctrl, Win and Alt keys, Space, Menu | 8 |
| Navigation | Ins, Home, PgUp, Del, End, PgDn and the four arrows | 10 |
Once you’ve pressed one key, a line lists the keys not pressed yet, up to 40 at a time. When every key on the board has been pressed, it says so. Keys that aren’t on the board, such as the number pad or media keys, appear on a separate line by their code names, for example Numpad7 or NumpadEnter. They don’t change the 84-key count.
Left and right keys count separately
Shift, Ctrl, Alt and Win each appear twice, and the keyboard test checks both copies. Pressing the left Shift turns only the left one green. This matters because one side can fail while the other works, and you might never notice if you always use the same hand.
Key, code and key code explained
The line under the board shows three values for the last key you pressed.
- Key is the character or name the key produces right now, so it changes with Shift and with your keyboard language. A space shows as Space.
- Code names the physical key. MDN says it isn’t altered by keyboard layout or the state of the modifier keys.[1] For example, the code is KeyQ for Q on a QWERTY keyboard, and the same code also stands for the A key on an AZERTY keyboard.[1]
- Key code is the older number. MDN marks it as deprecated and describes it as a system and implementation dependent number, usually the decimal ASCII code of the key.[3] If a key can’t be identified, the value is 0.[3]
So if you hold Shift and press A, the line shows key A, code KeyA and key code 65.
Testing a keyboard with another layout
The board is drawn as a US layout, but it tracks keys by position, not by the letter printed on them. On a French AZERTY keyboard, pressing the key marked A lights the place where Q sits on the board, because both share the code KeyQ.[1] Work across each row by position and the test still shows which keys respond. Any key that isn’t on the board appears in the list of other keys pressed.
Shortcuts during the test
While the test runs, the page captures your keys so Tab, Space and the arrows don’t move around the page. Combinations with Ctrl, or Cmd on a Mac, are left to the browser, so Ctrl+R still reloads the page. If you switch to another window while holding a key, the test forgets what was held, so no key stays lit by mistake. Some keys, such as Print Screen, only report when you let go, so they turn green on release.
Checking for ghosting, step by step
- Press Start test.
- Hold down three keys that games often use together, such as W, A and Shift.
- While holding them, press a fourth key, like Space.
- Watch the board. Keys you’re holding stay highlighted. If one you’re pressing doesn’t light up, the keyboard can’t register that combination.
Repeat with the keys you use most. Press Clear results to start a fresh round.
What next
Use this often? Add Keyboard Tes to your Home screen.
Frequently asked questions
How do I know if a key is broken?
Press Start, then press the key. If it doesn’t turn green, and it doesn’t work in other apps either, it may be faulty.
Does this work on a laptop?
Yes. It works with laptop and desktop keyboards, wired or wireless. It doesn’t test on-screen keyboards on phones.
Why doesn’t the Windows or Fn key show?
Some keys are handled by the operating system or the keyboard itself and never reach the browser.
Is anything I type recorded?
No. Key presses are only used on this page to light up the keys, and nothing is saved or sent.
Why does the keyboard test count 84 keys?
The board shows a standard US layout without a number pad: function keys, four letter and number rows, the Space row and ten navigation keys. Number pad and media keys are listed separately.
Can I test a keyboard with a non-US layout?
Yes. The test tracks the position of each key, so press the keys row by row. A key may light up under a different letter on the board, which is normal.
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.