What is keyboard chatter?

Chatter is when one press of a key types it twice or more, so "hello" comes out as "helllo". Inside a mechanical switch, two metal contacts touch when you press the key, and they bounce for a moment before they settle. The keyboard ignores that bouncing, which is called debouncing. When a switch wears out, gets dirty or its contacts corrode, the bouncing lasts longer than the keyboard waits, and the computer sees the key let go and pressed again a few milliseconds later. Switches without contacts, such as optical and magnetic ones, can double-type too when they're faulty or set too sensitive.

How to test

  1. Press every key a few times, and the keys you suspect, such as the space bar or the letters you use most, many times. Type at your normal pace; there's no need to tap fast.
  2. Each press is timed from the moment the same key was released before it. A press that starts less than the chatter threshold after that release counts as chatter, since no finger lets go of a key and presses it again that fast.
  3. Keys you've pressed turn blue on the drawing and keys that chattered turn red. The table lists every key you've pressed with its presses, its chatters and the shortest gap between a release and the next press.

Keys that aren't on the drawing, such as the arrow keys and the numpad, are counted in the table too. Holding a key down counts as one press, however long the computer repeats it.

Choosing the threshold

Chatter usually shows up as gaps of a few milliseconds, far shorter than the gap of any real double tap. If your normal fast typing gets flagged, lower the threshold; if a key misbehaves but nothing shows up, raise it a little. A new threshold is applied to the presses you've already made, so there's no need to start over. Reset clears everything.

What to do about a chattering key

  • Clean it: blow the dust out with compressed air, then press the key quickly many times to wipe the contacts.
  • Raise the debounce time if your keyboard's software or firmware has that setting.
  • Replace the switch. On a hot-swap keyboard it pulls out and a new one pushes in; otherwise it needs soldering.
  • If the keyboard is under warranty, show the result to the seller.

Accuracy and privacy

The timing comes from your browser, which rounds the time of key events slightly, and from your keyboard, which reports to the computer a number of times per second. Both are far finer than the gaps chatter leaves.

The test runs in your browser. Key presses aren't sent anywhere or saved.