Why is my keyboard double typing?
One press, two letters. It is one of the most common keyboard faults, and it usually has a physical cause.
What is actually happening
A mechanical key does not send a letter. It closes a circuit, and the keyboard's controller decides that the contact was a real press. Old or dirty contacts bounce: they make and break contact several times in a few milliseconds as the metal settles.
Keyboards filter that bounce out with a debounce delay, a short window in which further contact does not count. When a switch wears, or dirt gets into it, the bouncing lasts longer than the debounce window and the controller reports two presses. That is the double letter.
On a laptop the same thing happens inside a membrane or scissor switch, where the cause is usually wear or something stuck under the key.
Confirm it before you fix it
Open the keyboard tester and press the problem key slowly, one press at a time, watching the key on screen. If one press lights the key once, the keyboard is reporting one press and the doubling is happening in software. If one press makes it flash twice, or the counter jumps by two, the fault is in the keyboard.
Then test the same key with a different program open. A text editor, a browser field and a chat box all receive the same key events, so if it doubles in one place it should double everywhere. If it only doubles in one app, that app is the problem.
The software causes, in order of likelihood
Filter Keys and Sticky Keys in Windows accessibility settings change how repeated and held keys are treated. If letters arrive late, repeat unexpectedly or get skipped, check those settings before blaming the keyboard.
A keyboard layout or input method that is not the one you think can turn one press into an unexpected character, though it rarely doubles a letter.
A failing driver or a USB problem can drop and repeat reports. Unplug, try another port, and on a desktop try a port directly on the back of the machine rather than a hub.
The physical fixes
Clean it. Turn the keyboard upside down, shake it out, then use compressed air in short bursts while pressing the key. On a mechanical keyboard, pull the keycap and look for debris. Do not pull laptop keycaps unless you know the hinge type, because they break easily.
Swap the switch if the keyboard allows it. On a hot-swappable mechanical board, moving the suspect switch to a key you never use will tell you in ten seconds whether the switch or the board is at fault.
Test on another computer. If it doubles there too, the keyboard is the problem and no amount of software work will fix it.
When to stop fixing
If a single key doubles after cleaning, on a laptop keyboard it usually means a new keyboard or a new machine. On a mechanical keyboard it usually means a new switch, which is cheap. Either way, the tester tells you whether the fix worked: press the key fifty times slowly and watch the counter.