Keyboard Typing Wrong Characters? Here's the Fix

Last updated August 2, 2026

When your keyboard suddenly types " where @ should be, numbers instead of letters, or é when you wanted a quote, the keyboard itself is almost never broken. In nearly every case the operating system is interpreting the keys through the wrong layout or a stuck mode. Match your symptom below, then apply the fix.

Quick diagnosis by symptom

What you see Likely cause
@ and " swapped, # becomes £ US layout active on a UK keyboard (or vice versa)
z and y swapped German (QWERTZ) layout active
a becomes q, w becomes z French (AZERTY) layout active
Typing an apostrophe or quote does nothing, then the next letter gets an accent (é, ñ) US International layout with dead keys
Some letters produce numbers (u→4, i→5, o→6) NumLock on a laptop with an embedded numeric pad
Everything types as shortcuts / nothing appears Stuck modifier key (Ctrl, Alt or Win held down)
One specific key types the wrong thing everywhere Remapping software or hardware fault

Fix the layout (the usual culprit)

Windows happily keeps several keyboard layouts installed and switches between them with a hotkey you can hit by accident (Win + Space, or Alt + Shift). That’s how layouts “randomly” change mid-day.

  1. Press Win + Space and watch the popup — if more than one layout is listed, cycle to the one matching your physical keyboard.
  2. To stop it happening again, remove the layouts you don’t use: Settings → Time & language → Language & region, click the next to your language → Language options, and under Keyboards remove every layout except the right one.
  3. If you legitimately need multiple layouts, at least disable the accidental switching: Settings → Time & language → Typing → Advanced keyboard settings → Input language hot keys, and change or disable the key sequence.

Not sure which layout your physical keyboard is? Look at the key to the left of Enter and above it: a UK keyboard has @ on the ' key (Shift+2 gives "), a US keyboard has @ on Shift+2.

Letters typing numbers: NumLock

On many laptops, part of the letter block doubles as a numeric pad (look for small digits printed on U, I, O, J, K, L, M). With NumLock on, those keys type digits. Press NumLock (on some laptops Fn + NumLock, or Fn + F11/F8) to turn it off.

Accents instead of quotes: dead keys

If typing ' or " shows nothing until the next key, and vowels come out accented (é, ü, ñ), you’re on the US International layout, which uses those keys as “dead keys” for typing accents. If you don’t want that behavior, switch to the plain US layout (see the layout fix above) — US International sneaks in as a default during some Windows installs.

Shortcuts firing instead of typing: a stuck modifier

If keys trigger menus and shortcuts instead of typing (e.g. pressing s saves the document), a modifier key — Ctrl, Alt, Shift or Win — is being held down as far as the OS is concerned. It can be physically stuck (debris, a failing switch) or “software-stuck” after a remote-desktop session or a game.

The fastest way to see it: open the keyboard tester — a stuck modifier lights up immediately as pressed the moment the page loads, before you touch anything. Then: tap each modifier key a few times (both left and right variants), and if one is physically sticking, a burst of compressed air under the keycap usually settles it. Also check Settings → Accessibility → Keyboard → Sticky keys is off.

One key wrong everywhere: remapping or hardware

If a single key types the wrong character in every app and every layout:

On a Mac?

Same idea, different paths: layouts live in System Settings → Keyboard → Input Sources (the switch hotkey is usually Ctrl + Space or Fn/🌐), and the menu-bar input indicator shows the active layout. Remove input sources you don’t use.

Rule out the hardware last

After fixing layouts and modes, give the whole board a pass in the keyboard tester: press every key and confirm each one lights up as itself, exactly once. Keys that don’t register, register as something else, or fire multiple times are genuine hardware faults — everything else on this page is software, and by now you’ve fixed it. The test runs entirely in your browser; nothing you type is sent anywhere.

Check whether the fix worked

Find stuck or dead keys on a visual keyboard.🔒 Runs entirely in your browser — nothing is uploaded.

Open the Keyboard Tester

More troubleshooting guides