Skip to content
KeySlice

Guides

What a browser keyboard and mouse test can and cannot measure

Every online keyboard and mouse test works from the same raw material: the events a browser gives a web page. Knowing what those are tells you which results you can trust, which are estimates, and which a web page cannot produce at all, however it is labelled. This page sets that out for the tests on this site, so you can judge their results rather than take them on faith.

What a web page receives from a keyboard

For every key press and release, the browser hands the page a keyboard event carrying:

  • The physical key, as a code such as KeyA or ShiftLeft, named for its position on a US layout regardless of what is printed on it.
  • The character or name it produced on your current layout, such as a, A or Enter.
  • Whether it is a repeat, generated because the key is held down.
  • A timestamp.
  • Which modifiers were down.

In Chromium browsers, a page can also ask for the layout map, which says which character each physical key produces on your layout, so a French keyboard can be drawn as AZERTY.

What that is enough for

Dead keys, stuck keys, keys that register twice (chatter), how many keys register at once (rollover), the key repeat delay and rate set in your operating system, and the exact sequence of codes a macro key sends. That is what the keyboard tester measures.

What it is not enough for

  • Fn. The Fn key is handled inside the keyboard: it changes what other keys send and never sends anything of its own. No web page can see it.
  • Keys the keyboard blocks. If a keyboard drops a key because too many are held, nothing is sent, so a test can only show the key as unpressed.
  • Shortcuts the browser or system keeps. Ctrl+W, Ctrl+T, Alt+Tab, Ctrl+Alt+Delete and others are acted on before a page sees them. In full screen, Chromium browsers let a page request a keyboard lock that captures many of these, which is how system and macro keys can be tested; without it they are out of reach.
  • Latency. A page learns of a key when it arrives. The time between the switch closing and that moment happens outside the browser, so it cannot be measured from inside it. Measuring it takes a high-speed camera or dedicated hardware.
  • Keyboard polling rate. A keyboard reports only when a key changes, so there is nothing to count between presses. A page offering to measure a keyboard’s polling rate is guessing.

What a web page receives from a mouse

  • Buttons, numbered 0 to 4 for left, middle, right, back and forward, on press and release, with a timestamp.
  • The wheel, as a distance on two axes in pixels, lines or pages.
  • Movement, as pointer events. Ordinary pointer events are delivered once per screen frame. Chromium also offers a raw update event, delivered for every movement report the browser receives, and other browsers can recover merged reports from each frame.
  • Locked movement. With pointer lock, the page gets movement as relative distances. Chromium on Windows and ChromeOS can deliver that movement unadjusted, before the operating system applies pointer speed and acceleration.

What that is enough for

Every standard button and both wheel axes (mouse test), the gap between presses of a button (double-click test), how many movement reports arrive per second (polling rate test), and how many counts the mouse sends over a measured distance (mouse DPI test).

What it is not enough for

  • The DPI and profile buttons. They change settings inside the mouse and send nothing.
  • Buttons beyond the fifth, unless the mouse’s software maps them to something a browser understands, usually a keyboard key.
  • The true rate at 4000 to 8000 Hz. Reports pass through the operating system and the browser before the page counts them, and at those rates some arrive batched. A browser reading of a fast mouse is a lower bound.
  • Exact DPI without raw input. Where unadjusted movement is unavailable, the page sees pointer movement after the operating system scaled it, and can convert it back only by assuming default pointer speed with acceleration off.

Which browser for which test

The tests use the best input each browser offers and fall back when it is missing. Only the first column has been measured on real hardware so far (Chrome on Windows, October 2026); the others follow from which browser features exist, and are not yet measured.

TestChrome or Edge, Windows (measured)Chrome or Edge, macOS and LinuxFirefoxSafari
Keyboard tester: keys, rollover, repeat, chatterFullFullFullFull
Keyboard tester: legends that follow your layoutYesYesNo, US legendsNo, US legends
Full-screen capture of Win, Alt+Tab and macro keysYesYesNoNo
Mouse test and double-click testFullFullFullFull
Polling rate testOne event per reportOne event per reportBatched events, reads lower at high ratesBatched events, reads lower at high rates
DPI testRaw mouse countsAn estimateAn estimateAn estimate
Spacebar counterFullFullFullFull

If a result matters, for a warranty claim say, run it in Chrome or Edge on Windows, and compare two browsers before blaming the hardware.

Timing precision

Browsers deliberately round timestamps, to a fraction of a millisecond, to protect against attacks that rely on precise timing. That is far finer than anything a keyboard or mouse button test needs: a chattering switch shows gaps of tens of milliseconds and a human double-click over a hundred. It does matter at 4000 and 8000 Hz, where reports are a quarter or an eighth of a millisecond apart, which is why the polling rate test’s headline figure counts reports over the whole time moving instead of timing each gap.

How each KeySlice test turns events into a result

TestWhat it countsLabelled as
Keyboard testerKey codes received; most held at once; repeat timing; release-to-press gaps under the chatter windowMeasured
Mouse testButtons 0 to 4 and wheel directions receivedMeasured
Double-click testPress-to-press gap per button under the thresholdMeasured
Polling rate testMovement reports per second while moving, pauses droppedMeasured, a lower bound at high rates
Mouse DPI testMovement counts over the distance you enterMeasured with raw input; an estimate otherwise
Spacebar counterSeparate presses of space, repeats ignoredMeasured

Nothing any of these tests receives is uploaded or stored on a server. They run entirely in your browser, and the only thing kept between visits is a few preferences and your spacebar bests, in your browser’s own storage.

Test it

← All guides