Keyboard Tester: Test Every Key Online

Press any key to test your keyboard. Nothing you type leaves your browser.

Phone or tablet? Connect a Bluetooth or USB keyboard, tap the keyboard below, then press keys. Touch-screen keyboards can't be tested: they don't tell the page which key was touched.

Press any key to start.

Keys are captured while the keyboard has focus, so shortcuts like F5 or Ctrl+F only light up.

Keys tested

0 / 104

Held now

0

Most keys at once

0

Double presses

0

Rollover and ghosting

Caps Lock –Num Lock –Scroll Lock –

Held now

Hold keys down to see them here.

Hold several keys together to test rollover and ghosting.

Try these combinations (each passes when every key in it is held at once)

    Last key

    –

    –

    Event
    –
    event.key
    –
    event.code
    –
    keyCode
    –
    location
    –
    Held for
    –
    Auto-repeat
    –

    Event log

    0 events
    Key events, newest first
    EventkeycodeLocationRepeatTime

    Every press and release appears here, with its key, code, location and timing.

    Not tested yet: 104Press keys to work through the list

    Double presses (chatter)

      Mouse test: buttons, double clicks and scroll wheel

      Click every button and scroll inside the box. While the pointer is over it, right-click menus, middle-click scrolling and page scrolling are switched off.

      Left, right and middle click, the side buttons, and the wheel

      Left
      0
      Middle (wheel)
      0
      Right
      0
      Back (side)
      0
      Forward (side)
      0
      Wheel up
      0
      Down
      0
      Left
      0
      Right
      0
      Wheel direction glitches0

      Last: – · Pointer: –

      Unintended double clicks

        Why test your keyboard?

        A key that only works when pressed hard, a letter that types twice or a game combo that drops a key is hard to prove by typing into a document. This tester shows exactly what your computer receives: each key lights up and is marked as working, every press and release is logged with its key code and timing, Held now shows how many keys register at once (rollover and ghosting), and double presses (chatter) are flagged. Use it on a new or second-hand keyboard, before a warranty claim, or after a spill.

        How to test your keyboard

        1. Pick ANSI (US, wide Enter) or ISO (UK and Europe, tall Enter), Windows or Mac legends, and your keyboard's size.
        2. Press every key once. Each one turns green when it registers; the counter and Not tested yet show what's left.
        3. Hold several keys together to test rollover, and tap any suspect key slowly about 20 times to check for chatter.
        4. Use Copy report for a support ticket or warranty claim, or download the event log as CSV.

        What the colours and numbers mean

        On the keyboardMeaning
        Blue, pushed inHeld down right now.
        GreenHas worked at least once.
        RedA double press (chatter) was caught on this key.
        Dashed outlineRarely reaches a browser (Fn, F16 to F19): lights up if it does, but isn't counted.

        Keys tested counts only the keys of the board you picked: 104 on a full-size ANSI keyboard, 87 on a TKL, 82 on a 75%, 78 on the laptop board and 67 on a 65%. Keys that aren't drawn, such as volume keys, F13 to F24 or Japanese and Brazilian extra keys, appear under Other keys detected, and so does a navigation key that your 75% or 65% keyboard puts somewhere else: that right-hand column differs from brand to brand. Character legends follow your own layout (AZERTY, QWERTZ, Dvorak): Chrome and Edge report it straight away, and other browsers relabel each key the first time you press it.

        Keyboard ghosting test and N-key rollover

        Most keyboards don't wire each key separately: the switches sit on a grid of rows and columns that the controller scans. Without a diode at every switch, holding three keys on three corners of a rectangle in that grid makes the fourth corner look pressed too, a ghost key. Controllers prevent that by ignoring the doubtful key instead (blocking), which is what most people now call ghosting: you press a key while holding others and nothing happens.

        RolloverWhat it meansTypical keyboards
        2KROAny two keys register; with three or more, some combinations are blocked.Many membrane and laptop keyboards
        6KROAny six ordinary keys plus the eight modifiers: the limit of the standard USB keyboard report.USB keyboards in basic (boot) mode
        NKROEvery key reported independently, however many are held.Most mechanical and gaming keyboards, sometimes as a mode to switch on

        The six-key limit is in the USB HID specification: a boot-mode keyboard report has one byte of modifier flags and six key slots. Hold a seventh key and the keyboard reports a rollover error until you let go of one, so the browser sees nothing new.

        How to run a ghosting test

        • Hold the keys you really combine, adding one at a time, and watch Held now. A key that won't light up while the others are down is blocked in that combination.
        • Try the combinations under the keyboard: W A Shift Space for running and jumping, Q W E R for ability keys, six letters for the USB limit and ten keys for N-key rollover.
        • Blocking depends on which keys share a row or column inside the keyboard, so test your own combinations rather than mashing the whole board.

        Key chatter test: when one press types twice

        A switch contact bounces for a few milliseconds as it closes, so keyboard firmware waits for the signal to settle before reporting a press (debouncing; QMK, a popular open-source keyboard firmware, waits 5 ms by default). A worn or dirty switch can bounce for longer than that, and one press arrives as two: chatter, or double typing.

        This tester flags a press that starts within the threshold of the same key's release (40 ms unless you change it) and shows the gap in the log. Tap a suspect key slowly, about once a second, 20 times: your own presses are then far apart, so anything flagged comes from the switch.

        How to fix a chattering key

        • Clean it: unplug the keyboard, remove the keycap if it comes off and blow out the dust. On mechanical switches, electrical contact cleaner worked in by pressing the switch often helps; let it dry first.
        • Raise the debounce time if your keyboard's software or firmware has the setting (many gaming, QMK and VIA keyboards do), or replace the switch (a hot-swap keyboard just needs a new one pushed in).
        • As a stopgap, Windows' Filter Keys (Settings, Accessibility, Keyboard) can ignore quick repeated presses. Turn it off while testing: it hides chatter from this page too.
        • On a laptop or a keyboard under warranty, chatter is a valid fault: attach the copied report to your claim.

        Keys a browser can't fully test

        KeyWhat happensHow to check it
        Fn, Fn LockHandled inside most keyboards; it changes what other keys send.Hold Fn with F1 to F12 or the arrows and watch those keys change.
        Print Screen (Windows)Windows keeps the press for screenshots; only the release arrives.Counted from its release, so it still turns green.
        Windows key, CommandArrives, but the system reacts too (the Start menu opens).Use full screen in Chrome or Edge.
        Volume and media keysUsually reported on Windows, Linux and ChromeOS; macOS keeps them.Look under Other keys detected.
        Power, sleep, brightness, backlightHandled by the keyboard or system, never sent to web pages.Check that the function itself works.
        Ctrl+Alt+Del, Alt+Tab, Ctrl+WReserved by the system or the browser.Full screen in Chrome or Edge captures many, never Ctrl+Alt+Del.
        § and ` on a Mac ISO keyboardSome browsers on macOS report these two keys the wrong way round (a long-standing macOS quirk), so each lights up the other.Press both: each still counts as tested.

        Full screen (the button next to Reset) uses the Keyboard Lock API in Chrome and Edge: after you allow it, keys the browser or system would normally take go straight to the page. Hold Esc for two seconds to leave. Other browsers still give you a bigger keyboard, and Esc leaves at once.

        Keyboard not working? Quick checks

        • One key stays dark in every browser and on another computer: it's the hardware. On a laptop, check the warranty before prying keys loose.
        • Several neighbouring keys fail together: usually a damaged ribbon cable or circuit layer, often after a spill.
        • The right key lights up but types the wrong character (Y and Z swapped, @ moved): the system's keyboard layout doesn't match the keys. The keyboard is fine.
        • The number pad moves the cursor: Num Lock is off; the lock lights above show it.
        • The top row changes the volume instead of sending F1 to F12: toggle Fn Lock (often Fn+Esc). On a Mac, turn on "Use F1, F2, etc. keys as standard function keys" under System Settings, Keyboard, Keyboard Shortcuts, Function Keys.
        • Keys lag or drop out: replace a wireless keyboard's batteries and plug its receiver into the computer rather than a hub. After a spill, unplug at once, turn the keyboard upside down and let it dry completely.

        key, code and keyCode: reading the event log

        The log shows what your browser reports for each press and release, which also helps when writing keyboard shortcuts in JavaScript (the W3C list of code values names every key). For the key labelled Z on a German keyboard:

        ValueExampleWhat it tells you
        event.key"z"The character typed with the current layout and modifiers, or a name such as Enter.
        event.code"KeyY"The physical key, named after its place on a US keyboard, whatever layout is active. This tester lights keys by it.
        keyCode90An older, deprecated number that varies between browsers.
        location01 or 2 for left or right Shift, Ctrl, Alt and Windows or Command, 3 for the number pad.

        Held keys fire auto-repeat events, counted on the row of the press; the Last key panel turns them into your repeat delay and rate. Three system quirks are handled for you: Windows sends AltGr as left Ctrl plus right Alt, so that Ctrl press is taken back and labelled; macOS sends no release for keys let go while Command is held, so they are released with Command; and macOS reports Caps Lock as a press when it locks and a release when it unlocks.

        Mouse test: double clicks and the scroll wheel

        The box below the keyboard counts left, right, middle, back and forward clicks. A worn mouse switch bounces like a keyboard switch, and since Windows treats two clicks within 500 ms as a double click by default, the bounce turns single clicks into double clicks. Any second press within the threshold of the release is listed with its gap. For the wheel, scroll steadily one way: a single step the other way mid-scroll is flagged as a glitch, the usual sign of a dirty or worn wheel encoder.

        Testing speed rather than faults? Try the click speed test, the aim trainer or the reaction time test. Once every key works, the typing speed test measures how fast you type on it.

        Private by design

        Everything runs on your device. The keys you press are handled by this page's own code and are never sent anywhere or saved; the event log disappears when you leave unless you download it. Only your settings (layout, legends, size, threshold and sound) are kept, in your browser's local storage.

        Frequently asked questions

        How do I test my keyboard online?

        Open this page and press each key once. Every key that reaches the browser lights up on the on-screen keyboard and turns green, the counter shows how many are left, and Not tested yet lists the rest. Pick ANSI or ISO, Windows or Mac and your keyboard's size first so the picture matches. It works with laptop, USB and Bluetooth keyboards in Chrome, Edge, Firefox and Safari, with nothing to install.

        Why is a key not lighting up in the keyboard tester?

        Either the key never reaches the browser, or it isn't working. Fn, power, brightness and backlight keys are handled inside the keyboard or by the operating system, so no web page can see them. For any other key, check Num Lock and Fn Lock, try another USB port or re-pair the Bluetooth keyboard, and test in another browser or on another computer: a key that stays dark everywhere is a hardware fault.

        How do I test my laptop keyboard?

        Choose the Laptop size, then press every key, including the top row with and without Fn. Depending on the Fn Lock setting, the top row sends F1–F12 or media functions: volume and play/pause keys appear under Other keys detected, while brightness and similar keys are handled by the laptop and never reach the page. When several keys in the same row or column fail together, the keyboard's ribbon cable or circuit is the usual cause.

        How do I test a mechanical keyboard?

        Pick its size (full, TKL, 75%, 65% or 60%) and layout, then press every key, including the ones you reach through Fn, until each has turned green. Hold the combinations you play with to check rollover, and tap each key slowly about 20 times to catch chatter, the usual fault of a worn or dirty switch. On a hot-swap keyboard, a key that stays dark often has a bent pin or a switch that isn't pushed fully into its socket.

        What is keyboard ghosting and how do I test for it?

        Ghosting is when pressing several keys at once makes one of them fail to register (or, on old keyboards, makes a key register that you never pressed). Hold the combinations you actually use, such as W + A + Shift + Space, and watch the Held now list: if one key won't light up while the others are held, your keyboard blocks that combination. The rollover challenges under the keyboard check common gaming combinations for you.

        What is N-key rollover (NKRO), and is 6-key rollover enough?

        Rollover is how many keys a keyboard can report at once. A USB keyboard in its standard (boot) mode sends up to six ordinary keys plus the eight modifiers (Ctrl, Shift, Alt and Windows or Command, left and right), which is 6-key rollover; NKRO keyboards report every key independently. Six keys is plenty for typing and most games. NKRO matters for rhythm games, stenography and players who hold many keys at once.

        What is key chatter, and why does my keyboard type double letters?

        Chatter is one press registering as two or more, usually because a worn or dirty switch makes contact, loses it and makes it again faster than the keyboard's debounce filter allows for. This tester flags a press that starts within the threshold (40 ms by default) of the same key's release. Tap a suspect key slowly about 20 times: any double press listed that you didn't make is chatter.

        Why doesn't Print Screen or Fn show up when I press them?

        On Windows, the system keeps the Print Screen press for itself (it takes the screenshot), so only the release reaches the browser; this tester counts the release, so the key still turns green. Fn is different: on most keyboards it never leaves the keyboard and only changes what other keys send. Test it by holding Fn with F1–F12 or the arrow keys and checking that those keys change.

        Why does my keyboard type the wrong characters, like Y instead of Z?

        Your computer is set to a different layout from the one printed on the keys, for example US English on a German keyboard, which swaps Y and Z and moves @ and the quote marks. The tester lights keys by their physical position (event.code), so if the right key lights up but event.key shows the wrong character, the keyboard is fine: change the keyboard layout or input language in your system settings.

        Can I test a keyboard on my phone or iPad?

        Yes, a physical one. Connect a Bluetooth or USB keyboard to your phone or tablet, tap the keyboard picture on this page and press keys: they light up just as they do on a computer. The touch-screen keyboard can't be tested this way, because phones don't tell web pages which on-screen key was touched.

        How do I test my mouse for double clicking?

        Use the mouse test below the keyboard. Click one button at a normal pace and the tester lists any second press that starts within the threshold of letting go, the classic sign of a worn switch. The same box counts left, right, middle, back and forward clicks and flags scroll-wheel steps that go the wrong way.

        Is it safe to use an online keyboard tester?

        This one runs entirely in your browser: the keys you press are processed on your device and are never sent anywhere or saved. Only your settings (layout, size, threshold and sound) are kept, in your browser's storage. The event log is gone when you leave the page unless you download it yourself.

        Advertisement