Keyboard Latency Test
This keyboard latency test times your key presses the honest way: it measures the part of the journey a web page can actually see — from the moment your browser receives a key to the moment the page handles it, and on to the next screen frame. Press any key twenty times and it reports your last, best, average and median delay, with every press kept in a list. What happens inside the keyboard itself happens before the browser gets the key, so no web page can time it. This page says exactly where its numbers start and stop, and shows you the camera method that measures the whole chain.
Read this first — what this test can and cannot measure
A key press travels a chain, and a web page joins it near the end. The switch actuates, the keyboard scans and debounces the press, waits for its next report — up to 1 ms at 1000 Hz polling, up to 8 ms at 125 Hz — crosses the cable or the wireless link, and the operating system hands it to the browser. Only then can a page see it. This test times what comes after that hand-over: how long the event waited before the page handled it, and how long until the next frame could show it. The keyboard's own share, which is usually the largest part of the chain, is not in these numbers, and this page never adds an estimate for it. To time the whole chain, keyboard included, you need a high-speed camera — the method is set out below, and it needs nothing more than a phone.
Click the pad, then press any key, one at a time, at a relaxed pace. Twenty presses make a result. Keys you hold down and let auto-repeat are not counted.
Click here, then press any key
—
Last press — from the browser receiving the key to this page handling it
Best
—
Average
—
Median
—
Presses
0 / 20
Time to next frame (average): — · Screen refresh: measuring…
Every press
No presses yet. Each press will be listed here, newest first, with its handling delay and its wait for the next frame.
How this keyboard latency test works
Every key event carries a timestamp, set by the browser at the moment the event was created, on the same clock the page reads with performance.now(). The first thing this page's handler does is read that clock again. The difference is the handling delay: how long your press waited between the browser receiving it and the page getting to run. Inside the same press, the page asks for the next animation frame and times that too — the time to next frame, the earliest moment anything about your press could appear on screen. Twenty presses are collected because single presses are noisy: the results lead with the median, the middle press of the twenty, which a single slow press cannot drag around the way it drags an average. Two limits are worth knowing. Browsers differ in how fine their clock is — Chrome and Edge time key events well under a millisecond, while Firefox and Safari may round to whole milliseconds, in which case each press reads as a whole step and the median over twenty is the figure to trust. And nothing here reaches back before the browser: the keyboard's own time is simply not in the room.
The full chain: where keyboard latency actually comes from
Follow one press. Your finger moves the key to its actuation point, partway down its travel — that travel is time, and shallow actuation points register sooner. The keyboard's controller scans its matrix of rows and columns looking for the change, then debounces: mechanical contacts bounce for a few milliseconds, so the firmware waits until the signal settles before believing it — a wait of 5 ms or more on cautious boards, and almost none on optical or Hall-effect switches, which have no contacts to bounce. The press then waits for the keyboard's next report: on a fixed schedule, up to 8 ms at 125 Hz polling, up to 1 ms at 1000 Hz. The report crosses the cable, or a wireless link — a 2.4 GHz dongle adds little; Bluetooth's connection interval is 7.5 ms at best. The operating system hands the event to the browser, the browser queues it behind whatever the page is doing — that queue, and the frame wait after it, is the part this test measures — and finally the monitor takes its own processing time before the frame lights up. Add it up and the browser's share is real but small: on a gaming setup it is a few milliseconds of a chain that the keyboard and the screen mostly own.
Typical keyboard latency ranges
These are typical ranges for the whole chain, from key press to the result on screen, gathered from published hardware measurements made with high-speed cameras and logic analysers. They are here so you can place your keyboard in the landscape — this page does not measure them, and no browser test can.
How to measure the whole chain with a phone camera
The camera method is how reviewers time keyboards, and it is the only way to include the keyboard itself. Film from the side so that one key and this page's test pad are both in frame, using your phone's slow-motion mode — 240 fps if it has it. The pad flashes the moment a press reaches the page. Step through the clip one frame at a time and count: frame A is where the key bottoms out, frame B is the first frame where the pad shows the flash. B minus A, multiplied by the frame duration, is that press's whole-chain latency. Five to ten presses is enough; take the middle count as your result. Stepping frames: on a Mac, QuickTime Player steps with the arrow keys; on Windows or Linux, VLC steps with the E key; on the phone itself, use a video editor with frame stepping. One warning that decides whether the numbers mean anything: the rate you count at must be the rate the phone actually recorded — a clip filmed at 120 fps but counted as 240 halves every result.
Differences between two keyboards smaller than one camera frame are inside the method's precision — call those a tie. The same method, on the same desk, is what makes comparisons honest: wired against wireless, or one keyboard against another.
How to reduce keyboard input lag
Start with the link: a cable, or a 2.4 GHz dongle, beats Bluetooth by a margin you can measure. Set the polling rate to 1000 Hz if your keyboard offers it — it caps the report wait at 1 ms. Then look at the screen end: a higher refresh rate shortens every frame, and the frame wait is part of what this test times, so a 144 Hz monitor takes roughly 3.5 ms off the average wait compared with 60 Hz. Keep the computer's side honest while you measure — handling delay grows under load, so close the heavy tabs and the game launcher before you judge a keyboard. Finally, game-mode or low-lag settings on the monitor trim its processing share. What is left after all that is the keyboard itself — its actuation point and its debounce — and that is fixed by the hardware you bought, which is exactly why the camera method matters when you are choosing the next one.
Frequently asked questions
Can a web page measure my keyboard's latency?
Not the keyboard's own part. A page receives a key only after the switch has actuated, the keyboard has scanned its matrix and debounced the press, a report has crossed the cable or the wireless link, and the operating system has handed the event over. Everything before that hand-over is invisible to the page, so any single keyboard latency number printed by a website is either the browser-side delay under another name, or a guess. This test labels what it times: the wait before the page handles the key, and the wait for the next frame. The whole chain, keyboard included, can be timed with a high-speed camera, as described on this page.
What is a good keyboard latency?
For the whole chain, fast gaming keyboards measure about 1 to 5 milliseconds with a camera, while ordinary office keyboards measure more like 10 to 30. For the browser-side handling this page times, an idle desktop in Chrome or Edge usually reads under 2 milliseconds, and an average under 4 milliseconds over twenty presses is a fast result. The fairest use of any of these numbers is comparison: run the same test, on the same computer and browser, and it will reliably tell you whether one keyboard, or one way of connecting it, is quicker than another.
Why does the delay change from one press to the next?
Because several clocks are involved and none of them are synchronised with your finger. A press can arrive just before the browser is ready for it or just after; the keyboard's reports leave on their own fixed schedule; and the frame your press is drawn in starts when the screen refreshes, not when you press. Background work on the computer adds the occasional slow press on top. That is why this test takes twenty presses and leads with the median: the middle value shrugs off the odd hiccup that would drag an average around.
Does polling rate make a keyboard faster?
A little, and predictably. A keyboard sends its news on a fixed schedule, so a press waits for the next report: up to 8 milliseconds at the 125 Hz office default, up to 4 at 250 Hz, and up to 1 at the 1000 Hz gaming rate — half those figures on average. Above 1000 Hz the remaining gain is under half a millisecond, smaller than the wait for one frame on any current monitor. Setting 1000 Hz is worth doing if your keyboard offers it, but it is rarely where a slow keyboard's delay lives: debounce, and on Bluetooth the connection interval, are usually bigger.
Is a wireless keyboard slower than a wired one?
It depends which wireless. Modern 2.4 GHz gaming keyboards with a USB dongle measure within about a millisecond of wired in camera tests. Bluetooth is usually slower: its connection interval is 7.5 milliseconds at best and often much longer, the operating system's Bluetooth stack adds its share, and the result moves with interference and distance. To see your own setup's difference, film the camera test described on this page with the keyboard connected each way — that method times the link as part of the chain, which the browser-side numbers here cannot separate out.
How can I reduce keyboard input lag?
Work along the chain. Connect wired, or with a 2.4 GHz dongle, rather than Bluetooth. Set the polling rate to 1000 Hz if the keyboard offers it. Raise the monitor's refresh rate: it shortens the wait for the frame your press appears in, which is part of what this test times. Close heavy tabs and apps while you measure — handling delay grows when the computer is busy, and you can watch it happen in the per-press list above. What no setting changes is the switch and its debounce: a keyboard built with a long debounce keeps it, whatever the software says.
Related tests
Keyboard Ghosting Test
Find the key combinations your keyboard drops — guided combos and a rollover count.
KeyboardKeyboard Test
Press every key and watch it light up — find dead or stuck keys in seconds.
ReflexReaction Time Test
Click as soon as the screen turns green — your reaction speed in milliseconds.
ReflexCPS Test (Click Speed)
How many clicks per second can you land in a timed sprint?