You press @ and get ". You type a number and get a letter instead. You hit a key that used to work perfectly and something completely different appears on screen.

Your keyboard isn't broken. Something has changed between the physical key you're pressing and what your operating system is interpreting — and it's almost always one of a small number of fixable causes. This guide walks through every one of them, in the order you should check them.

Why Does This Happen?

Your keyboard sends a raw signal to your operating system when you press a key. The OS then interprets that signal using a keyboard layout — a map that says "when you press this key, output this character." If the layout your OS is using doesn't match the physical labels on your keyboard, you'll get the wrong characters.

This mismatch can happen for several reasons: a language setting changed accidentally, a lock key (NumLock, Fn lock) got toggled, a new keyboard with a different regional layout was plugged in, or a software update silently switched your input method.

Step 1: Check Your Keyboard Layout Setting (Most Common Cause)

The single most common reason for wrong characters is a keyboard layout mismatch. Your OS thinks you have a different layout than you actually do. This is especially common if:

  • You recently added a new input language
  • You pressed a keyboard shortcut that switched your active layout
  • Your keyboard has a different regional layout (UK, AZERTY, QWERTZ) to what Windows or macOS expects

Fix on Windows

  1. 1. Open Settings → Time & Language → Language & Region.
  2. 2. Under your preferred language, click the three dots → Language options.
  3. 3. Under "Keyboards," check which layout is listed. If it says "United Kingdom" but your keyboard is US, that's your problem.
  4. 4. Click Add a keyboard to add the correct one, then remove the wrong one.

Windows also has a quick-switch shortcut: Win + Space cycles through installed keyboard layouts. If you see the layout change in the system tray, you've found the culprit — pressing this accidentally is more common than it sounds.

Fix on Mac

  1. 1. Go to System Settings → Keyboard → Input Sources.
  2. 2. Check which input sources are listed. Remove any you don't use.
  3. 3. Make sure the layout shown matches your physical keyboard.

On Mac, Control + Space (or Control + Option + Space) switches between input sources. Accidentally hitting this is a frequent cause of the problem.

Step 2: Check NumLock

If your number keys (especially on a laptop's letter keys) are typing numbers instead of letters, or if your numpad is outputting letters instead of numbers, NumLock is the culprit.

  • On a full keyboard: Press the NumLock key (top-left of the numpad). There's usually an indicator light — on means numbers, off means navigation keys.
  • On a laptop without a numpad: Some laptops activate a hidden numpad overlay on the letter keys. Look for a NumLock or NumLk key, often accessed with Fn + a function key. Check your laptop's manual for the exact combination.

This is especially common on compact laptops where keys like J, K, L, U, I, O are mapped to numpad digits when NumLock is active.

Step 3: Check Fn Key Lock

Many keyboards — especially laptop keyboards and compact 60%/65% keyboards — have an Fn lock. When active, the Fn key layer becomes the default, which can make function keys output media controls, or make certain keys output different characters entirely.

How to toggle Fn lock: Usually Fn + Esc, Fn + CapsLock, or a dedicated FnLock key. Check your keyboard's documentation — the combination varies by manufacturer.

Some gaming keyboard software (like Corsair iCUE, Razer Synapse, or Logitech G Hub) also controls Fn behavior. If you use keyboard software, check whether a profile has remapped any keys.

Step 4: Check CapsLock (and Sticky Keys)

Obvious, but worth confirming: if everything is typing in the wrong case, CapsLock is on. Check the indicator light on your keyboard or the system tray.

Less obvious: Windows' Sticky Keys accessibility feature can alter how modifier keys (Shift, Ctrl, Alt) behave, which sometimes causes unexpected character output. To check: go to Settings → Accessibility → Keyboard → Sticky Keys and make sure it's off.

Step 5: Region-Specific Layout Mismatches to Know About

If you're using a keyboard from a different country or region, certain keys will be in different places. The most common mismatches:

Layout
Key
What it types instead
US on UK setting
@ key
" (quote)
US on UK setting
# key
£ (pound)
QWERTZ (DE)
Y key
Z
AZERTY (FR)
Q key
A

The fix for all of these is Step 1 above — match the OS keyboard layout to the physical keyboard layout.

Step 6: Restart or Update Keyboard Drivers (Windows)

If none of the above apply, a corrupted or outdated keyboard driver can occasionally cause wrong character output — especially after a major Windows update.

  1. 1. Open Device Manager (right-click Start → Device Manager).
  2. 2. Expand Keyboards, right-click your keyboard, and select Uninstall device.
  3. 3. Restart your computer. Windows will automatically reinstall the driver.

Quick Diagnosis Checklist

01Check Win + Space (Windows) or Ctrl + Space (Mac) — have you accidentally switched layouts?
02Go to Language Settings and confirm the active keyboard layout matches your physical keyboard
03Toggle NumLock — especially if number/letter keys are swapped
04Toggle Fn Lock (usually Fn + Esc or Fn + CapsLock)
05Check CapsLock indicator
06Disable Sticky Keys in Accessibility settings
07If using keyboard software (Corsair, Razer, Logitech), check for remapped keys
08Reinstall keyboard drivers via Device Manager as a last resort

If your keyboard is typing wrong characters after a liquid spill or physical shock, the cause might be hardware rather than software. In that case, see our guide on what to do after spilling water on your keyboard — or use the KeyTest keyboard tester to pinpoint exactly which keys are misbehaving before you change any settings.