How to Fix Keyboard Chatter (Keys Typing Twice)

You press E once and "ee" appears. Or a key you hit quickly types two, three or none at all. That is keyboard chatter: the switch reports more than one press for a single tap. Here is what causes it, how to prove it in a minute with the keyboard tester, and the fixes in the order worth trying.

The short answer

  • Chatter is contact bounce: the metal contacts in a switch spring apart and touch again for a few milliseconds, and the keyboard reads each touch as a press.
  • Every keyboard filters bounce with a short debounce delay. Chatter starts when dirt or wear makes a switch bounce longer than that delay.
  • Confirm it with the keyboard tester: a key pressed again within 30 ms of its release turns red and the log shows "Chatter: E twice in 12 ms". No finger is that fast.
  • Fix it in this order: clean the switch, raise the debounce time in the keyboard software, replace the switch (easy on hot-swap boards), then use the warranty.

What keyboard chatter is

Inside most mechanical switches, two small metal contacts touch when you press the key. Metal is springy, so the contacts do not meet cleanly: they touch, bounce apart and touch again several times within a few milliseconds before they settle. Engineers call this contact bounce, and "chatter" is the older name for the same thing.

The keyboard's controller hides bounce by debouncing: after it sees a change, it waits a short time and only counts the press once the signal is steady. The open-source QMK keyboard firmware, for example, waits 5 ms by default. As long as the switch settles inside that window, you never see the bounce.

When a switch gets dirty, oxidized or worn, it bounces for longer. Some of those bounces now land after the debounce window, and the controller reports them as a second press. You see a doubled letter, or a key that seems to release and press again while you hold it.

Chatter or something else?

Three other problems look like chatter, and the fixes are different:

  • Key repeat: a key you hold types a long run of letters. That is the system repeat setting, not hardware. It starts only after about half a second of holding.
  • A stuck key: the key stays pressed or fires by itself without being touched. See the guide on a keyboard key not working.
  • Ghosting: keys go missing when you hold several at once. That is a rollover limit; the keyboard ghosting test shows it.

Chatter is the one where a single, short press counts twice, and it usually affects one or two keys rather than the whole board. A mouse button that double clicks is the same fault in a mouse switch; the double click test catches it.

How to confirm chatter with the keyboard tester

  1. Open the keyboard tester and click the keyboard diagram.
  2. Tap the suspect key 20 to 30 times at a normal typing pace. Press it fully and let it come all the way up each time.
  3. Watch the key. If it turns red, the tester saw it pressed again within 30 ms of being released, and the Chatter counter goes up.
  4. Open the key log: each bounce has its own line, such as "Chatter: E twice in 12 ms".
  5. If the letter doubles in normal typing but nothing turns red, raise the Chatter window to 50 or 80 ms and test again. Very worn switches can bounce that late.
  6. Test two or three keys you know are fine. They should never turn red at a normal pace; if they do, lower the window to 20 ms.

A person cannot release a key and press it again in 12 or 20 ms. The fastest real double taps are several times slower, so anything in that range is the switch, not you.

Fixes that work, in order

  1. Blow it out. Unplug the keyboard, hold it at an angle and blow compressed air around the key from several sides. Then press the key 50 times quickly to work the contacts. Dust and crumbs are a common cause, and this costs nothing.
  2. Clean the switch. Pull the keycap with a keycap puller. With the keyboard unplugged, put one drop of electronics contact cleaner (one that is safe on plastic) or 99% isopropyl alcohol into the top of the switch, press the switch 50 to 100 times, and let it dry completely, at least 15 minutes, before plugging the board back in. Never use water or a cleaner that leaves a film.
  3. Raise the debounce time. Many gaming keyboards have a debounce or "key response" setting in the maker's software, and boards with QMK or VIA firmware can be built with a longer debounce. Raising it a few milliseconds hides mild chatter. It also makes very fast double taps a little slower to register, so raise it only as far as needed.
  4. Update the firmware. Makers sometimes fix debounce bugs in firmware, especially on new boards and wireless boards. Use the official software only.
  5. Replace the switch. On a hot-swap keyboard, pull the switch with a switch puller and press in a new one of the same type; it takes a minute. On a soldered board, the switch must be desoldered and replaced, which a repair shop can do. Membrane and laptop keyboards cannot have one switch replaced; the keyboard or the laptop top case is replaced instead.
  6. Use the warranty. Chatter on a keyboard less than a year or two old is a classic warranty fault. Record the tester showing the red key and the log lines, and send that to support with your receipt.

After each step, run the keyboard tester again. Stop at the first fix that keeps the key from turning red over 30 or more presses.

Why chatter comes back

Cleaning removes dirt, but it cannot undo wear on the contacts. If a key starts chattering again a few weeks after a cleaning, the switch is worn and should be replaced. Switches in the most used spots (space, E, W, A, S, D, the arrow keys) wear first, so it is normal for one of them to fail long before the rest of the board.

Spills are the other common cause. Sugary drinks leave a sticky film on the contacts that compressed air cannot reach. Clean the switch with contact cleaner as soon as you can after a spill, or replace it.

Frequently asked questions

What causes keyboard chatter?
Contact bounce in the switch lasting longer than the keyboard's debounce delay, usually because of dirt, a spill, oxidation or worn contacts.
How do I test for keyboard chatter?
Open the keyboard tester, tap the key 20 to 30 times at a normal pace and watch for it turning red. The key log lists each chatter press with the time between release and the next press.
Can software fix chatter?
It can hide mild chatter by raising the debounce time in the keyboard software or firmware. It cannot repair a switch that keeps getting worse; that switch needs cleaning or replacing.
Is chatter covered by warranty?
Usually yes, because it is a switch fault, not damage. Keep a recording of the tester showing the chatter as evidence.
Do optical switches chatter?
Optical and magnetic (Hall effect) switches have no metal contacts to bounce, so they do not suffer from classic contact chatter, though a dirty or faulty sensor can still misfire.
Why does only one key type twice?
Each key has its own switch. The one that chatters is the one that is dirty or worn, often a key you press more than the others.

Sources

  1. Wikipedia: Switch, contact bounce (also called chatter)
  2. Wikipedia: Keyboard technology, debouncing
  3. QMK Firmware: Contact bounce / contact chatter (default debounce 5 ms)