Why is my keyboard typing the wrong characters?
@ and " swapped, odd symbols or the wrong letters: fix the keyboard layout, language switching and Num Lock.
Short answer
If keys type the wrong symbols, Windows is almost always using a different keyboard layout than your physical keyboard, for example UK instead of US (which swaps @ and "). Accidental Alt + Shift or Win + Space presses switch layouts mid-game. Set the right layout, remove the ones you don’t use, and check Num Lock on laptops.
Check it now: Keyboard TesterCauses and fixes
Go through them in order. Most come with a test that shows if it is your problem.
Wrong layout selected
The same physical key types different symbols in US, UK, German or other layouts.
How to fix
- Open Settings → Time & language → Language & region → your language → Options → Keyboards.
- Add the layout printed on your keyboard and remove the wrong one.
Layouts switching by accident
Alt + Shift and Win + Space switch between installed layouts and languages, easy to press while gaming.
How to fix
- Remove layouts you don’t need so there’s nothing to switch to.
- In Advanced keyboard settings → Input language hot keys, turn off or change the switch shortcut.
Laptop letters typing numbers
On some laptops, Num Lock turns part of the letter keys into a number pad.
How to fix
- Press Num Lock (or Fn + Num Lock) to turn it off.
Questions
Why does it only happen in one game?
Some games read keys by position, others by character, and a few switch layouts on their own. Set your layout before starting the game.
Do I lose my second language if I remove a layout?
Keep the languages you type in, just remove layouts you don’t use. You can keep two and switch on purpose.