test.cihat.dev

Keyboard tester

A free online keyboard tester: press every key once and each one that works lights up on the map, while the counter shows how many keys your keyboard reports at the same time.

Click here, then press keys

While this box has focus every key is caught here, Tab included. Press Esc twice quickly to leave it.

Keys tested0
Held now0
Most at once0
The last key event
key–
code–
location–
repeat–
Keys not on the map–

How to use it

  1. Click the box under the controls so it has focus, then press keys one by one. Each key that reaches the browser is shaded on the map.
  2. Hold several keys together to test rollover: Most at once shows the largest number the keyboard reported together. Keys that stay dark after you let go may be stuck.
  3. Keys that are not on the map, such as media keys, are listed under the table with their code. Press Esc twice quickly to leave the box.

Dead, stuck, chattering and ghosting keys

Each fault looks different on the map, so you can tell them apart with a few presses.

FaultWhat you see hereUsual cause
Dead keyThe key never lights up, however you press ita worn switch, a broken trace, or dirt under the cap
Stuck keyThe key stays dark after you let go, or keeps repeatinga sticky switch or something wedged under the cap
ChatterOne press types twice; the last event shows repeat: false both timesa worn mechanical switch bouncing on contact
GhostingHolding three or more keys adds a key you did not press, or drops onekeys that share wiring in the keyboard’s matrix
Rollover limitMost at once stops rising before you have pressed them allthe keyboard can only report so many keys at once

How many keys can a keyboard report at once?

The USB HID specification defines a boot keyboard report of eight bytes: one byte for the eight modifier keys (left and right Ctrl, Shift, Alt and the Windows or Command key), one reserved byte, and six bytes for ordinary keys. A keyboard that works this way can report six ordinary keys plus any modifiers. When a seventh ordinary key goes down, the specification tells it to report an error in all six places, so the extra key is ignored. This limit is often called 6-key rollover.

Keyboards sold as n-key rollover use a different report and send every key you hold. Cheaper keyboards may stop at two or three keys in some combinations because keys share wires; the specification lets them report a “phantom” state when the combination cannot be read, and nothing new lights up.

Worked example: hold W, A, S, D, Space and Shift, a common gaming combination. That is five ordinary keys and one modifier, so Most at once reaches 6 on any boot keyboard. Add E and R: a 6-key rollover keyboard now holds seven ordinary keys and the count stops rising, while an n-key rollover keyboard shows 8.

Keys a browser never sees

Fn is handled inside most keyboards and only changes what the other keys send. The W3C list of key codes says it “is typically a hardware key that does not generate a separate code”, so test it by holding Fn and pressing a key it changes, such as F1. On many laptops the top row sends brightness or volume by default; those keys appear under the table as keys off the map. Some combinations are taken by the operating system before the browser gets them, such as Command plus Tab on a Mac or the Windows key plus L. Print Screen often reaches the page only on key release.

Reading key, code and location

The table shows the values a page receives for the last key event. key is the character or name your layout produces. code is the physical position, named after the key in that place on a US keyboard, so the Turkish ı key reports KeyI and the F layout’s a key reports KeyF. location tells left from right for Shift, Ctrl and Alt, and marks numeric keypad keys. repeat is true when the key is being held and the system is repeating it.

Once every key lights up, check your speed: take the typing speed test or count clicks and spacebar presses in the CPS test.

Questions people ask

How do I test my keyboard online?

Click the test box and press every key. Each one that works lights up on the map; any key that stays plain did not reach the browser.

How do I check for ghosting?

Hold several keys together and watch Most at once. If a key you are holding does not light up, or one you did not press does, the keyboard cannot report that combination.

What is n-key rollover?

A keyboard with n-key rollover reports every key held at the same time. A standard USB boot keyboard reports up to six ordinary keys plus the modifier keys.

Why does the Fn key not light up?

Fn is handled inside the keyboard and is not sent to the computer as a key of its own, so no web page can see it.

Does it work on a Mac and with a Turkish keyboard?

Yes. On a Mac the Command and Option keys light up as Meta and Alt. Choose Turkish Q or Turkish F to label the map like your keys.

Is anything I type recorded?

No. Key presses are shown on this page only and are not stored or sent.