Why Is My Keyboard Typing Double Letters?
Why Is My Keyboard Typing Double Letters?
You type "hello" and get "helllo". You press the spacebar once and the cursor jumps two spaces. It is one of the most irritating faults a keyboard can develop, partly because it is intermittent — the key works perfectly for a paragraph and then doubles on you mid-word.
The good news is that double typing has a small number of causes, and they are easy to tell apart once you know what separates them. The bad news is that the internet's standard advice — reinstall the driver, adjust the repeat delay — fixes only one of those causes, and it is not the most common one.
This guide walks through the four real explanations, in the order worth checking, and tells you how to identify yours in about two minutes using the double typing test.
The four causes, and how they differ
| Cause | What it looks like | Where the fix is |
|---|---|---|
| Switch chatter | One key, intermittent, tiny gap between characters | Hardware — clean or replace the switch |
| Debounce set too low | Several keys, worse after a firmware change | Firmware — raise the debounce window |
| Key repeat settings | Every key, consistent, worse when you rest a finger | OS settings |
| Software interference | Every key, only in some applications | Remapping tools, macros, remote desktop |
The single most useful diagnostic question is how many keys are affected. A hardware fault lives in one switch. If your A key doubles and nothing else does, no amount of driver reinstalling will help. If every key on the board doubles, the switches are almost certainly fine and something above them is duplicating the input.
Cause 1: Switch chatter (the most common by far)
Inside almost every keyboard switch, a press closes a metal contact. That contact does not close cleanly — it bounces, physically, for a few milliseconds as the metal lands and settles. This is normal physics and every switch does it, from a five-dollar membrane board to a boutique mechanical one.
Keyboard firmware hides the bounce with a debounce window: after registering a press, the controller ignores further changes on that key for a short period, typically around five milliseconds. The bounce happens inside the window, the controller never reports it, and you get one clean keystroke.
A switch chatters when its bounce lasts longer than the debounce window. The controller sees the contact open and close again after the window has expired, concludes that you pressed the key twice, and reports two keystrokes. This happens as a switch ages: contacts oxidise, pick up dust and skin oil, and lose a little spring tension.
How to confirm it
Chatter has a signature that nothing else shares: the two characters arrive impossibly close together. A human being cannot press the same key twice in under about 50 milliseconds, and typing at a normal pace the gap is more like 150. Chatter produces gaps in the 1–30 millisecond range.
The double typing test measures exactly this. Tap the suspect key repeatedly and it flags any repeat keydown that arrives inside the chatter threshold, showing the actual millisecond gap. If you see a 12 ms gap, you have your answer — no human typed that.
Two caveats worth knowing before you act on the result:
- Chatter is intermittent. A key might chatter on one press in twenty. Ten clean taps is not proof of health; you need enough presses to catch it.
- Held keys produce a different pattern. Holding a key down triggers the operating system's auto-repeat, which is not chatter. The test excludes events flagged as repeats, but it is worth tapping rather than holding while you test.
How to fix it
On a hot-swap mechanical keyboard, this is a five-minute repair. Pull the keycap, pull the switch with a switch puller, and put a known-good switch in the socket. If the fault follows the switch to a different socket, the switch was the problem. If the fault stays in the original socket, the socket has failed and that is a soldering job.
Before replacing, cleaning is worth one attempt: put a drop of isopropyl alcohol into the switch housing and actuate the stem thirty or forty times. This genuinely clears contamination off the leaf and resolves a fair share of chattering switches, especially young ones. Manufacturers rate MX-style switches at 50 to 100 million presses, so a switch chattering at two years old has nowhere near worn out — contamination is much more likely than wear.
On a soldered mechanical board, replacing the switch means desoldering. If you do not have the equipment, raise the debounce window instead (see below) — it suppresses the symptom without repairing anything, which is a legitimate stopgap.
On a membrane or laptop keyboard, there is no switch to replace. Clean around the key with compressed air held upright and a swab barely damp with isopropyl alcohol. If that fails, the practical options are an external keyboard or a whole-keyboard replacement.
Cause 2: A debounce window set too low
If you flashed custom firmware, tuned a gaming keyboard for "lower latency", or bought a board that advertises an unusually low debounce time, you may have created this yourself.
QMK defaults to about five milliseconds, which is a well-chosen compromise: long enough to swallow a healthy switch's bounce, short enough that nobody perceives the delay. Some vendor software lets you push it to one or two milliseconds and markets it as a responsiveness gain. The gain is a fraction of a millisecond — genuinely imperceptible — and the cost is that any switch with slightly long bounce starts chattering.
The fix: raise it back. In QMK, set DEBOUNCE in config.h to 5 or higher and reflash. In vendor software, look for a debounce or "response time" setting and return it to the default. If double typing started right after a firmware or settings change, check this before you open the case.
The same lever is your stopgap on a soldered board with one genuinely chattering switch. Raising debounce to 10 or 15 ms will stop the doubling. Be honest with yourself about what that is: masking, not repair. The switch is still degrading, and the value will need to keep going up.
Cause 3: Key repeat settings
This one affects every key, and it is the cause that the standard internet advice actually addresses.
Your operating system decides how long a key must be held before it starts repeating, and how fast it repeats after that. If the delay is set very short, brushing a key or resting a finger produces a second character.
- Windows: Control Panel › Keyboard, or search for "keyboard" in Settings. Move "Repeat delay" toward Long. While you are there, check Filter Keys under Settings › Accessibility › Keyboard — it is designed to ignore repeated keystrokes, and it can be enabled accidentally by holding right Shift for eight seconds.
- macOS: System Settings › Keyboard. "Delay Until Repeat" toward Long. Check Slow Keys under Accessibility › Keyboard too, since it produces its own confusing symptoms.
- ChromeOS: Settings › Device › Keyboard, then adjust "Delay before repeat".
If changing the repeat delay makes no difference at all, the setting was not your problem and you should go back to cause 1.
Cause 4: Software sitting in the input path
If the doubling only happens in certain applications, the keyboard is not at fault. Something between the keyboard and the application is duplicating the event.
The usual suspects:
- Remapping and macro tools — AutoHotkey scripts, PowerToys Keyboard Manager, vendor gaming software. A macro bound to a key can fire the key and then send it again.
- Remote desktop and virtual machines — a lagging session can deliver a keystroke twice when the connection stutters. This is very common and looks exactly like a hardware fault.
- Browser extensions — a few extensions listen on keydown and re-dispatch events.
- Two active input paths — a laptop keyboard and a docked external keyboard both mapped to the same input, or a KVM switch passing through duplicate reports.
The fix: test in Safe Mode, or close the suspect software and try again. If the doubling stops, you have found it.
Working out which one you have
Run through this in order. It takes a couple of minutes and rules out three of the four causes quickly.
- Open the double typing test and tap the suspect key twenty times, deliberately, one tap per press.
- Look at the gaps. Anything under 30 ms is chatter — no human hand produces that. Anything above about 80 ms was probably you.
- Test other keys. If only one key doubles, it is hardware. If all of them do, it is settings or software.
- If all keys double, close your remapping and vendor software and test again.
- If it persists, check the repeat delay and Filter Keys / Slow Keys in your accessibility settings.
- If only one key doubles, clean it first, then replace the switch if you can.
Frequently asked questions
Is double typing always a hardware problem?
No, but it usually is when it affects a single key. The rule of thumb worth trusting: one key doubling is hardware, every key doubling is software or settings. The middle case — several keys but not all — most often points at a debounce value set too low across the whole board, which is a firmware setting rather than a switch fault.
What millisecond gap actually indicates chatter?
Under about 30 milliseconds is a reliable indicator, and under 15 is essentially conclusive. The fastest deliberate double-tap a person can manage on one key is around 50 ms, and normal typing produces gaps of 100 ms and up. A 10 ms gap between two keydowns on the same key was not produced by your hand.
Can I fix a chattering switch without replacing it?
Sometimes. Isopropyl alcohol into the housing while actuating the stem repeatedly clears contamination off the contact leaf, and that resolves a meaningful share of cases — particularly on switches only a year or two old, which have not worn out. It is worth one attempt before ordering parts. If cleaning fails twice, replace it.
Does raising the debounce setting fix the problem?
It stops the symptom, which is not the same thing. The switch is still bouncing longer than it should and will keep degrading. On a hot-swap board, replace the switch — it is faster than tuning firmware. On a soldered board without desoldering equipment, raising debounce is a reasonable way to keep using the keyboard, as long as you know what you have done.
Why does my keyboard only double type in one game or application?
Because that application is not seeing the same input path as everything else. Check for macro bindings and overlay software first, then for anything that intercepts keys globally. A genuine hardware fault does not respect application boundaries — a chattering switch chatters in Notepad too.
My laptop keyboard is double typing. Can I repair it?
Not at the switch level — laptop keyboards are a single sealed assembly. Start with cleaning: compressed air held upright, in short bursts at an angle across the key, then a swab barely damp with isopropyl alcohol around the edges of the cap. Avoid prying the keycap off; laptop scissor hinges are thin plastic and break easily. If cleaning fails, the choice is a whole-keyboard replacement or an external keyboard, and on an older machine the external keyboard is a perfectly reasonable answer. The laptop keyboard test covers the mechanism-specific faults in more detail.
Related tools and reading
- Double typing test — measures the gap between repeat events and flags chatter
- Stuck key test — for keys that repeat continuously rather than twice
- Mechanical keyboard test — per-key press counts across the whole board
- Keyboard testing guide — the full testing walkthrough