Keyboard Typing Wrong Characters? How to Fix It
Quick answer: Typing the wrong characters — like the at sign and quote marks swapped, or letters becoming numbers — is almost always the wrong keyboard layout or an active Num Lock, not a fault. Switch to your correct layout and check Num Lock.
See what each key actually sends: open the keyboard test.
Fix the layout or language
Press Windows plus Space to switch input layouts, and make sure the one that matches your physical keyboard (such as UK rather than US) is selected. Remove any extra layouts in Settings so the right one is not pushed aside.
Letters turning into numbers
On laptops without a separate number pad, Num Lock remaps some letter keys to digits. Press Num Lock, or Fn plus Num Lock, to turn it off.
Stuck modifiers and AltGr
A stuck Ctrl, Alt or AltGr key, or accidental key combinations, can also change what you type. Restart to clear a stuck modifier, and if it persists update the keyboard driver. If whole keys fail, see some keyboard keys not working.
Confirm the fix
On the keyboard test, each key should now report the character printed on it.
Why Your Keyboard Types the Wrong Characters
When keys produce the wrong symbols, the keyboard is almost never broken — your layout or input language doesn't match the physical keyboard. The classic giveaway is the US and UK layouts disagreeing: on a UK layout, Shift+2 gives " while a US layout gives @, and the £, #, @ and " keys all move around. Windows can switch layout accidentally with a hotkey (often Alt+Shift or Win+Space), so you change it without realising. Fix it on Windows 11 24H2 at Settings → Time & language → Language & region, removing unwanted layouts and setting the one that matches your keyboard; on macOS Sequoia, System Settings → Keyboard → Text Input → Input Sources.
Step-by-Step Fixes
- Check the active layout — the language indicator near the clock shows ENG (US) or ENG (UK); click it to switch, or press Win+Space to cycle.
- Remove extra layouts so a stray hotkey can't switch you to the wrong one.
- Test the keys on the keyboard test to confirm which physical keys map where.
- Check NumLock — on laptops without a separate numpad, NumLock turns part of the letter area (U, I, O, J, K, L) into numbers. Toggle it off.
- Disable any remapping tools such as AutoHotkey or PowerToys Keyboard Manager that may be reassigning keys.
Modifier Keys, AltGr and Dead Keys
A few special cases produce wrong characters. A stuck modifier — Ctrl, Alt or a stuck Shift — makes everything behave oddly; press each modifier on its own and check Sticky Keys is off in Accessibility settings. The AltGr key (right Alt) on international layouts produces extra symbols like € or @, so a layout that expects it changes what some keys do. And some layouts use dead keys, where a key like ' waits to combine with the next letter to make an accented character (é, à); if letters seem to "swallow" your apostrophes, a dead-key layout is active. Switching to the layout that matches your keyboard resolves all of these.
When It Really Is the Hardware
Hardware is the cause only in narrow cases: a spill can bridge contacts so one key triggers another, and a genuine fault can stick a key down, repeating or blocking input. If the layout is definitely correct and a specific physical key still produces the wrong output in the keyboard test, then clean under that key or consider that the switch or membrane is damaged. But check the layout first — it's the answer the vast majority of the time.
Layouts by Region and Language
Most wrong-character problems come down to picking the layout that matches your physical keyboard. English (US) and English (UK) differ in the placement of @, ", £, # and the backslash, so a US layout on a UK keyboard (or vice versa) reshuffles exactly those keys. US-International adds dead keys and AltGr symbols, handy for accented languages but confusing if you didn't expect it. On a Mac, the equivalent lives in System Settings → Keyboard → Text Input → Input Sources, where you add and reorder layouts. One subtlety people miss: Windows can remember a different input language per app, so one program types correctly while another doesn't — set your preferred layout as the default and remove the rest to stop the inconsistency. After adjusting, confirm each key with the keyboard test.
Frequently Asked Questions
Why is my keyboard typing the wrong symbols?
Your keyboard layout doesn't match your physical keyboard — most often a US/UK mismatch that swaps @, \", £ and #. Switch to the correct layout in Settings → Time & language → Language & region, and remove layouts you don't use.
How do I change my keyboard layout on Windows 11?
Go to Settings → Time & language → Language & region, click your language, and manage keyboard layouts there. You can also click the ENG indicator near the clock or press Win+Space to switch quickly between installed layouts.
Why does my keyboard type numbers instead of letters on some keys?
On laptops without a dedicated numpad, NumLock turns keys like U, I, O, J, K and L into a number pad. Press NumLock (sometimes Fn + NumLock) to turn it off and restore normal letters.
Why does my apostrophe key not work until I press another key?
You're on a layout with dead keys, where ' waits to combine with the next letter to make an accented character. Switch to a layout like English (US) without dead keys, or press space after the apostrophe.
Why does my keyboard swap the @ symbol and the double-quote?
That is a US/UK layout mismatch. On a UK layout, Shift+2 produces a double-quote, while a US layout gives the @ symbol. Switch to the layout that matches your physical keyboard in Settings, Time and language, Language and region.
How do I stop Windows changing my keyboard language?
Remove the layouts you don't use so a stray hotkey can't switch to them, and disable the language-switch shortcut (Alt+Shift or Win+Space) under Advanced keyboard settings → Input language hot keys.
Why does one app type wrong characters while others are fine?
Windows can remember a different input language for each app. Set your preferred layout as the default and remove the extra layouts so every program uses the same one and types consistently.
A symbol is printed on my key but won't appear — why?
That symbol likely needs the AltGr key (right Alt) or a layout that includes it. Try holding AltGr while pressing the key, or switch to the layout that matches the printing on your keyboard.
Could autocorrect be changing my characters instead of the keyboard?
Yes. If whole words change after you type them, autocorrect or a text-expansion tool is the cause, not the keyboard. Check the app autocorrect settings and any utilities like PowerToys before blaming the hardware.
Why do accented characters appear when I press certain keys?
You are on an international or dead-key layout that reserves some keys for accents. Switch to a standard layout such as English (US) without dead keys to type normally, in your language settings.