A keyboard types the wrong letters most often because the language or layout is set incorrectly, for example a French AZERTY layout instead of QWERTY, or because Num Lock or a stuck key is changing the output. On phones, autocorrect and the wrong language usually cause it. A faulty or dirty key is the main hardware cause.
Why this happens
- The keyboard layout or input language is set wrong, so keys map to different characters.
- Num Lock is off or on when you do not expect it, changing some keys to numbers or arrows.
- A dirty, sticky, or stuck key that repeats or registers the wrong input.
- Accessibility features like Sticky Keys or Filter Keys behaving unexpectedly.
- An outdated or glitchy keyboard driver.
- On phones, autocorrect and predictive text change words, or the keyboard is set to the wrong language.
Is this normal?
No. A correctly set keyboard types exactly what you press. Wrong letters almost always come from a layout, lock, or autocorrect setting, or from a hardware fault.
Does it cause any problems?
Beyond typing errors and frustration, it causes no harm. Once you correct the setting or clean the key, the keyboard works normally again.
How to fix or check it
- On Windows, check the language shown near the clock, and press Windows plus Spacebar to switch layouts. Remove extra layouts in Settings, Time and language, Language and region.
- Check Num Lock. If letters turn into numbers or the arrow keys act oddly, toggle the Num Lock key.
- On Mac, open System Settings, Keyboard, Input Sources, and remove any layout you did not mean to add.
- On Windows, run the keyboard troubleshooter and update or reinstall the keyboard driver in Device Manager.
- Turn off Sticky Keys and Filter Keys in the accessibility settings if keys behave strangely.
- Clean under sticky or stuck keys, and test with an external keyboard to confirm whether the built-in one is faulty.
- On a phone, go to keyboard settings and turn off or adjust autocorrect and predictive text, and select the correct language.
- On Android, clear the keyboard app cache in Settings, Apps, then restart the phone.
Frequently asked questions
Why does my keyboard type numbers instead of letters?
That is usually Num Lock on a compact laptop keyboard turning part of the letters into a number pad. Press the Num Lock key to switch it off.
Why did my letters swap after nothing changed?
The input language or layout likely got switched by accident, often with a keyboard shortcut. Change it back in your language or input settings.
How do I know if it is hardware or software?
Plug in an external keyboard, or on a phone try a different keyboard app. If the problem disappears, it was hardware. If it stays, it is a setting.