Peripherals · Windows 11
Fix a keyboard that types the wrong characters or repeats keys
When the keys stop matching the screen, the keyboard is usually innocent. The most common cause is a layout switch you triggered without noticing — one shortcut, and the quote key starts producing a different symbol. Repeating keys and ignored presses have their own short list: an accessibility feature switched on by holding a key down, a repeat setting pushed too far, or one tired key on an aging board. Sort the symptom first, and the fix is usually a setting, not a purchase.
What you need
- A safe place to test typing. Open a blank document or a notes app and type test lines there — never test in a password field, where you cannot see what the keys actually produced.
- One written example. Note one key you pressed and the character that appeared. "Pressed the quote key, got an at sign" is a clue you can solve; "types weird" is not.
- A second keyboard if one is nearby. Any spare USB keyboard turns the last section of this guide into a straight answer about hardware.
Sort the symptom before you change anything
- Symbols are swapped, but letters are right. The classic pair is the at sign and the quote mark changing places, or the backslash and hash keys trading symbols. That pattern is a keyboard layout mismatch — Windows is reading your keyboard as a layout from a different region — and it is fixed in Settings, not on the board.
- Keys repeat, double, or keep going after you let go. If every key repeats too easily, the repeat rate and delay settings are the first suspects. If exactly one key repeats, sticks, or fires twice on a light press, that one key is the suspect and no setting will cure it.
- Presses are ignored until you hold the key, or keys seem sluggish. That is the signature of Filter Keys, an accessibility feature that ignores brief presses. It switches on when the right Shift key is held down for several seconds, which happens during ordinary typing and gaming more often than anyone expects.
- Numbers come out of the letter keys on a laptop. Part of the keyboard is acting as a number pad. That is Num Lock behavior on compact laptop keyboards, where a block of letter keys doubles as a keypad — press the Num Lock key, or the Fn combination printed for it, once and type the test line again.
The simple fixes, in order
- Check the layout on the taskbar. Look at the language indicator near the clock — it shows the active layout in a few letters. Click it and choose the layout that matches the keyboard in front of you. Pressing Windows key + Space cycles through the installed layouts, which is also how the wrong one usually got selected. Type your test line after each change and stop when the characters match the keys.
- Remove the layout you do not use. If the wrong layout keeps coming back, take it out. Open Settings > Time & language > Language & region, open the options for your language, and look at the Keyboards list. Remove the layout you never type on and keep only the one that matches your board, so there is nothing left to switch to by accident.
- Turn Filter Keys and Sticky Keys off. Open Settings > Accessibility > Keyboard and turn off Filter Keys and Sticky Keys unless you use them on purpose. If plain repeats, not ignored presses, are your problem, leave these features off and use the repeat sliders in the next step instead — repeat timing does not live in the Filter Keys settings.
- Slow the repeat down. Search Start for Keyboard and open the classic keyboard properties panel. Move Repeat delay a step longer and Repeat rate a step slower, then test in the box provided on that panel. These two sliders decide how long a held key waits before repeating and how fast it repeats after that — a board that doubles letters at normal typing speed often settles with a longer delay alone.
- Compare against the On-Screen Keyboard. Open the On-Screen Keyboard from Settings > Accessibility > Keyboard and click the same characters. If the on-screen keys produce the right symbols while the physical keys do not, Windows and the layout are fine and the physical keyboard is where the fault sits. If both produce the same wrong symbols, the layout is still wrong — go back to the first step.
Reinstall the keyboard driver and test the hardware
When the layout is right, the accessibility features are off, and the behavior is still wrong everywhere, give the keyboard a clean driver and then a straight hardware test.
- Reinstall the driver in Device Manager. Right-click the Start button, open Device Manager, expand Keyboards, right-click your keyboard, and choose Uninstall device. Restart the PC and Windows installs a fresh copy of the standard keyboard driver on the way up. Microsoft covers uninstalling and reinstalling drivers in Update drivers through Device Manager in Windows. On a laptop, keep a mouse handy so you can still click through the restart steps.
- Try the keyboard somewhere else, and another keyboard here. Plug the suspect keyboard into a second PC, or plug a spare keyboard into this one. A fault that follows the keyboard is the keyboard. A fault that stays with the PC, across two keyboards, is Windows or the port — try a different USB port before concluding anything.
- Clean one sticky key properly. For a single repeating key on a desktop keyboard, power the keyboard off or unplug it, turn it over, and shake out debris. A key that still repeats after cleaning and on a second PC is worn out, and replacement is the honest fix.
End state
- A full test line of symbols matches the printed keys exactly, including the quote, at sign, and backslash keys.
- Holding a key repeats at a pace you chose, and normal typing produces no doubled letters.
- The taskbar shows only the layout you type on, so there is no second layout to switch to by accident.
When it goes wrong
- The layout is right in Windows but wrong in one program only. That program has its own input or language handling. Restart the program first; a program that started while the other layout was active can hold on to it for the whole session.
- The wrong characters appear at the sign-in screen too. The layout choices on the sign-in screen are separate from your desktop choices. Use the language indicator on the sign-in screen itself to pick the right layout before typing a password — a correct password typed on the wrong layout still fails.
- Every fix holds for a day, then the behavior changes again. Something is changing the settings back — most often the layout shortcut being hit during typing. With only one layout installed there is nothing to switch to, which is why the removal step matters more than the switching step.
Related fixes
-
Fix a keyboard that types the same character twice with one press
One press, two letters — repeated on the same keys — is usually key chatter from a failing switch, but a repeat-rate setting set too fast can look identical. Test with the repeat settings and a second keyboard first, so you replace a keyboard only when the fault follows the key, not the settings.
-
Fix a keyboard whose Windows key and shortcuts open the wrong things
When Windows key shortcuts open the wrong things and symbols come out swapped, the keyboard is usually set to the wrong layout or a remapping tool has changed what the keys send. Check the active layout first — the classic tell is the @ sign and quote marks trading places — then hunt down any remap before suspecting the keyboard itself.
-
Fix a keyboard that types numbers instead of letters on a laptop
When the right-hand letters on a laptop type numbers instead, the embedded numeric keypad is switched on. One Num Lock key press, often with Fn, turns it back off — and nothing is broken.
-
Fix a keyboard or mouse that works in Windows but not in BIOS or recovery
A keyboard that works all day in Windows and goes dead in the BIOS setup or the recovery menu is not broken. Before Windows loads, the firmware drives the keyboard, and it only drives some ports, some connection types, and some settings. Use a wired keyboard in the right port first, then change the firmware setting that caused it.
Sources
- Microsoft Support, Update drivers through Device Manager in Windows — uninstalling and reinstalling a keyboard driver in Device Manager.
- Microsoft Support, Use SFC to repair missing or corrupt system files — repairing system files when input behavior breaks across the whole PC.
- Microsoft Support, Recovery options in Windows — the recovery routes when Windows itself needs repair.