My keyboard is typing the wrong letters
Wrong characters almost never mean broken hardware. Here is how to tell a layout mismatch from a genuine fault in under a minute.
If pressing Q produces A, or the quote key adds an accent to the next letter you type, your hardware is almost certainly fine. Wrong characters and dead keys are different problems with different causes, and people frequently replace a working keyboard over this.
The one minute test
Open the keyboard test and press the key in the top left of the letter block, where Q sits on a US layout.
- The test highlights Q but your text editor types A: your keyboard is physically fine and your operating system is set to the wrong layout. This is a settings fix.
- The test highlights nothing: that key is not reaching your computer, which is a genuine hardware fault.
- The test highlights a different key than the one you pressed: rare, and points at a firmware or remapping layer rather than the switch.
The test works this way because browsers report both the physical position of a key and the character it produced, and these are separate pieces of information. The test uses position, which is why it stays accurate regardless of which layout you have configured.
Common layout mismatches
| What you press | What you get | Layout you are actually on |
|---|---|---|
| Q | A | French AZERTY |
| Y | Z | German QWERTZ |
| Quote, then a letter | An accented letter | US International |
| Number keys | Symbols without Shift | AZERTY, or Num Lock off |
| Backslash | Hash or another symbol | UK versus US |
Changing this is a settings change in your operating system’s language or input preferences. Remove the layout you do not want rather than just adding the one you do, because both remain available and a keyboard shortcut can switch between them by accident. On Windows that shortcut is often Windows key plus Space, which is easy to hit unintentionally.
When it is a stuck modifier
If letters come out capitalised, or number keys produce symbols, a modifier key may be physically stuck closed.
The keyboard test shows held keys distinctly from pressed keys. Load it, touch nothing, and look at the board. Any key showing as held while your hands are off the keyboard is stuck. That is a real hardware fault, usually debris under the keycap, and it is fixed the same way as any stuck key.
Caps Lock is worth separating out here. It is a toggle rather than a held modifier, so a keyboard with Caps Lock on will not show anything as held. If everything types in capitals and nothing shows as held, check the Caps Lock indicator.
When it is remapping software
If you have ever installed keyboard customisation software, a gaming keyboard’s configuration app, or a text expander, check those before blaming anything else. They sit between the keyboard and the operating system and can silently rewrite keys, including after an update resets a profile.
Most gaming keyboards also store profiles in onboard memory, which means a remap follows the keyboard to a different computer. That makes it look like a hardware fault when the keyboard misbehaves everywhere. Resetting the keyboard to factory defaults through its software rules this out.
Common questions
Why do my number keys type symbols?
On most layouts this means a modifier is stuck or Num Lock is off. If the keyboard test shows Shift as held when you are not touching it, you have a stuck modifier key. If it shows nothing held, check Num Lock and your layout setting.
My quotation marks add accents to the next letter.
You are on an international layout with dead keys, where quote and backtick modify the following character to produce accented letters. Switch from the international variant to the standard one in your language settings.
Everything types in capitals.
Caps Lock, or a stuck Shift key. The keyboard test distinguishes them: a stuck Shift shows as permanently held, while Caps Lock does not show as held at all since it is a toggle.
It only happens in one application.
That is a software problem, not hardware or layout. Some applications have their own keyboard handling or shortcut schemes. Games and terminal emulators are the usual culprits.