Keyboard typing wrong characters — pressing ‘A’ and getting ‘@’, using shift and getting unexpected symbols, or the keyboard layout looking scrambled — is almost always a language/input settings issue, not a hardware problem. The fix is usually quick once you know where to look. We go deeper on the whole subject in our Complete Guide to Fixing Windows, Browser, and Software Errors.
The most common cause: the wrong keyboard layout is selected. This typically happens when Windows switches layouts during a shortcut key combination or after an account sign-in, and the user doesn’t realise the layout has changed.
Immediate check: what layout is active right now
Look at the bottom-right of the taskbar — near the system clock. If you see a language indicator like “ENG,” “DEU,” “FRA,” or a flag icon: click it to see all installed layouts and which is currently active. The keyboard layout switches between these when you press specific shortcuts (usually Alt+Shift or Windows+Space).
Switch to the correct layout and test your keyboard. If this was the issue: it resolves immediately.
Fix 1: Remove unwanted keyboard layouts
If you don’t need multiple keyboard layouts: removing the extras prevents accidental switching. Settings → Time and language → Language and region → click your primary language → Options → look for “Keyboards” → remove any layouts you don’t use.
If you only have one layout installed and it’s still wrong: the installed layout itself needs to be changed. Remove the wrong layout → Add a keyboard → select the correct one for your physical keyboard.
Fix 2: Disable layout switching shortcuts
The accidental layout switch is often caused by pressing Alt+Shift or Windows+Space. To disable these shortcuts: Settings → Time and language → Language and region → Language settings (at the top) → Keyboard shortcuts → change the “Input language” hotkey to “Not assigned.” After disabling: you won’t accidentally switch layouts with key combinations anymore.
The “Not assigned” option means you’ll only be able to switch layouts manually via the taskbar icon — which is fine for most users who don’t regularly type in multiple languages.
Fix 3: Caps Lock and Num Lock states
If the keyboard is producing the right letters but in wrong case (ALL CAPITALS unexpectedly, or all lowercase when you expect capitals): Caps Lock is on. Press it once to toggle. Similarly: if the numeric keypad is typing letters instead of numbers, Num Lock is off. Press Num Lock to enable.
Some laptop keyboards have unusual Num Lock behaviour — if pressing specific key combinations (Fn+F11, for example) triggers Num Lock accidentally and turns part of the keyboard into a numeric pad: learn your laptop’s specific Num Lock shortcut and use it to toggle back.
Fix 4: Language settings don’t match the physical keyboard
The most permanent fix for “my keyboard types wrong characters” after a Windows reinstall or new machine setup: Settings → Time and language → Language and region → ensure the language and keyboard layout match your physical keyboard’s country variant.
Common mismatches:
- US keyboard with UK layout selected (or vice versa): @ and ” are swapped, # and £ are different
- German keyboard with English layout: Y and Z are swapped, special characters are wrong
- QWERTY physical keyboard with AZERTY layout selected (common after language pack installation)
The layout name tells you both the language and the keyboard format. “English (United States) → US” for a standard US keyboard; “English (United Kingdom) → English” for a UK keyboard. Match the layout to your physical keyboard’s characters.
Fix 5: Input Method Editor (IME) interference
If you have an IME installed (for Chinese, Japanese, Korean, or other languages requiring character input assistance): the IME may be active when you don’t intend it to be. An active Japanese IME causes typed characters to enter a composition mode rather than being output directly.
Check: the taskbar language indicator shows the IME status. Click it → ensure the correct input mode is selected (Roman/Direct Input rather than Hiragana or Kanji for Japanese, for example). If you don’t need the IME: remove it from Settings → Language → the language’s keyboard options.
Fix 6: Hardware keyboard test
If the above software fixes haven’t resolved the issue: test the keyboard hardware. In Windows, open the On-Screen Keyboard (search “osk.exe”) and type the same characters. If the On-Screen Keyboard produces the correct output: the physical keyboard hardware has a problem (stuck key, physical damage). If the On-Screen Keyboard also produces wrong characters: the issue is definitely software settings.
Also: test the physical keyboard in a different application — does it type correctly in Notepad but not in a specific app? Some applications implement their own keyboard handling or have their own language settings independent of Windows.
Our guide on keyboard hardware issues covers physical keyboard troubleshooting when the hardware itself is suspected. For language packs and Windows locale settings that affect more than just the keyboard layout, our system locale guide covers the regional format settings. Microsoft’s keyboard layout documentation covers the complete library of available keyboard layouts, the difference between input language and display language, and how to set up keyboard shortcuts for switching between layouts during multilingual work.
Specific key producing wrong output
If only one or a few specific keys produce wrong characters (rather than the entire keyboard being wrong): a key is physically stuck, the key’s contact is damaged, or a Fn key combination has remapped it. Test with the On-Screen Keyboard to confirm whether the issue is physical or software.
For software remapping: some gaming keyboards have “lock” modes that remap specific keys. Gaming software like Logitech G Hub, Razer Synapse, or Corsair iCUE can remap keys — check whether any active profile in that software has changed key assignments. Disabling the software profile usually restores default key behaviour immediately.
Wrong characters in specific applications only
If the keyboard types correctly in most applications but incorrectly in one specific app: that application has its own language or keyboard settings. Common examples:
- Games that capture keyboard input directly may not respect Windows layout settings
- Remote Desktop sessions use the keyboard layout from the remote machine, not the local one
- Virtual machines have their own keyboard passthrough settings
- Some productivity applications (CAD software, specialised editors) have their own key binding systems
For games: check the game’s own keyboard layout settings or language settings in Options. For Remote Desktop: the remote machine’s keyboard layout determines what characters appear. For VMs: VMware and VirtualBox have keyboard passthrough configuration in their settings.
Auto-correct and autocomplete changing characters
If characters appear correctly as you type but then change: Windows autocorrect may be replacing what you typed. Settings → Time and language → Typing → check autocorrect and spell check settings. Some autocorrect rules replace specific character sequences with others (replacing “-> ” with an arrow symbol, for example).
For Office applications: File → Options → Proofing → AutoCorrect Options shows the specific replacements. Removing rules that cause unexpected character changes is more surgical than disabling all autocorrect.
QWERTY vs QWERTZ vs AZERTY layouts
Understanding the difference explains why specific key positions seem “wrong” to users from different regions:
| Layout | Common in | Key difference from US QWERTY |
| QWERTY (US) | USA, Canada, many others | Reference layout |
| QWERTY (UK) | United Kingdom | @ and ” swapped; # replaced by £; extra keys |
| QWERTZ | Germany, Austria, Switzerland | Y and Z swapped; umlauts; special characters different |
| AZERTY | France, Belgium | Q and A, W and Z all swapped; numbers require Shift |
When a machine appears to type “wrong characters”: comparing against this table immediately identifies which layout is incorrectly selected. If @ and ” are swapped: you have a UK layout with a US keyboard (or vice versa). If Y and Z produce opposite letters: QWERTZ vs QWERTY mismatch.
Sticky Keys and modifier key issues
If shift or control keys produce unexpected character combinations: Sticky Keys may be active. Sticky Keys allows modifier keys to remain active after being pressed once — pressing Shift once means the next character is capitalised, then Shift deactivates. This can produce confusing behaviour where characters alternate between normal and shifted unexpectedly.
Settings → Accessibility → Keyboard → Sticky Keys → Off. Also: Filter Keys (slows key registration) and Toggle Keys (plays sounds when lock keys activate) — both can cause apparent keyboard problems. Review all three accessibility keyboard features if keys are behaving unexpectedly.
Registry-level keyboard layout for persistent issues
When the correct layout is selected in Settings but the keyboard still types as if a different layout is active: the registry may have a different layout registered at the system level. Administrator Command Prompt:
reg query "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlKeyboard Layouts"
This shows all registered keyboard layouts. Compare the active layout GUID from Settings against what’s registered at the system level. For persistent layout mismatches that survive settings changes: the registry may need updating to match. This is an advanced fix that should only be needed if normal Settings changes aren’t sticking — which usually indicates a Group Policy override.
Keyboard not typing at all in specific locations
If the keyboard types correctly in some text fields but completely fails in others: UAC (User Account Control) elevation might be the issue. Certain elevated dialogs don’t accept keyboard input from a non-elevated process — if a password prompt or admin confirmation box isn’t accepting input: click into the dialog box first to give it focus, then type. Elevated contexts require explicit focus before accepting keyboard input from the desktop level.
Keyboard typing wrong characters — whether from layout mismatch, accidental switching, or accessibility settings — is a software problem with a software solution in nearly every case. The taskbar language indicator is the first place to look: if it shows the wrong layout, switching it there is the immediate fix. The more permanent solution is removing unwanted layouts and disabling the switching shortcuts that cause accidental changes during normal use.
For users who regularly switch between keyboards from different countries (a common situation for multilingual households or people who work internationally): setting up named keyboard profiles through the taskbar language indicator makes manual switching much faster. Instead of going through Settings each time, clicking the language indicator and selecting from the list takes 2 seconds. Configuring this once prevents repeated troubleshooting of “why are my keys wrong” every time someone uses a different keyboard.
Diagnosing with a keyboard tester
For confirming exactly which characters each key produces in the current layout: keyboardtester.com or similar web tools show the raw key codes when you press each key. This is more precise than testing in a document because it shows the actual key code rather than what the application interprets from it. If a key produces the expected key code but the application shows the wrong character: the application’s input handling is the variable. If the key produces the wrong code from the start: it’s the layout or hardware.
After a keyboard replacement or laptop repair
If wrong characters appeared after a keyboard replacement (laptop keyboard swap, replacing a damaged key): the replacement keyboard may be a different country variant from the original. A US keyboard physically placed in a UK laptop, or vice versa, produces exactly the “wrong characters” symptom because the physical key positions don’t match the layout Windows expects.
Solution: match the keyboard layout in Windows to the physical keyboard that was installed. If the technician installed a US keyboard: set Windows to US layout. If they installed a UK keyboard: set UK layout. The physical key labels are the definitive reference for which layout to use.
For laptop users specifically: spills, even small ones that seem dry, can cause specific keys to stick or report incorrect input for weeks after the incident. If certain keys started typing wrong characters after a spill: the issue is physical even if the keyboard appears dry. Isopropyl alcohol (90%+) applied carefully with a swab around affected keys, followed by drying, helps with minor spill contamination. Significant liquid damage requires keyboard replacement. You might also run into Optical Drive Not Working in Windows 11.
The keyboard layout problem is one of those issues where the fix is trivially simple (click the language indicator, select the correct layout) once you know what’s happening, but completely baffling if you don’t know that Windows silently switches layouts. Teaching this single concept — that Windows has a language indicator in the taskbar that controls keyboard layout and can be accidentally switched — prevents the majority of “my keyboard suddenly types wrong” support requests. It’s worth showing colleagues and family members where this indicator is, especially on shared computers where language switching is more likely to happen accidentally. Related: Windows 11 Keyboard Not Typing.






