Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When Windows types the wrong character, the keyboard is not necessarily broken. Windows first receives a scan code from the physical key and then converts it according to the active keyboard layout. A second possibility is a software or registry remap that changes the key before an application receives it.

Use the quick tests first: press Win+Space to check the active layout, turn off Num Lock if letter keys produce numbers, and compare the physical keyboard with Windows’ On-Screen Keyboard. Then work through the software and driver fixes below.

Identify what kind of key swap you have

What happens Most likely cause
Y and Z, or symbols, are in unexpected positions Wrong keyboard layout
U, I, O, J, K, or L type numbers Num Lock or an embedded numeric keypad
F1–F12 act as media keys Fn Lock or keyboard firmware mode
Only one application is affected Per-application layout or remapping
The same swap occurs at the sign-in screen Registry Scancode Map or keyboard hardware
Only one physical keyboard is affected Keyboard, USB, Bluetooth, or manufacturer software

1. Switch to the correct keyboard layout

Press Win+Space to open Windows’ input-language panel, then select the layout that matches the keyboard you are using. For example, select US QWERTY for a standard US keyboard or United Kingdom for a UK keyboard.

A physical key does not directly mean a particular character. It sends a scan code, and Windows interprets that code through the selected layout. That is why a keyboard can appear to have swapped keys even when every switch is working correctly.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Amazon Basics Wired QWERTY Keyboard, Works with Windows, Plug and Play, Easy to Use with Media Control, Full-Sized, Black
  • KEYBOARD: The keyboard works for Windows with hot keys that enable easy access to Media, My Computer, Mute, Volume up/down, and Calculator
  • EASY SETUP: Experience simple installation with the USB wired connection
  • VERSATILE COMPATIBILITY: This keyboard is designed to work with multiple Windows versions, including Vista, 7, 8, 10 offering broad compatibility across devices.
  • SLEEK DESIGN: The elegant black color of the wired keyboard complements your tech and decor, adding a stylish and cohesive look to any setup without sacrificing function.
  • FULL-SIZED CONVENIENCE: The standard QWERTY layout of this keyboard set offers a familiar typing experience, ideal for both professional tasks and personal use.

If the wrong layout keeps returning, remove it using the next fix.

2. Remove an unwanted keyboard layout

An extra layout can be selected accidentally with Win+Space, or by a shortcut while gaming or typing. Remove layouts you never use.

  1. In Windows 11, open Settings > Time & language > Language & region.
  2. Next to the relevant language, select the three-dot menu and choose Language options.
  3. Under Keyboards, select the unwanted layout and choose Remove.

In Windows 10, go to Settings > Time & Language > Language, select the language, choose Options, and remove the layout under Keyboards. Keep at least one keyboard installed for the language.

These steps follow Microsoft’s keyboard input-layout instructions.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

3. Add the correct keyboard layout

If the layout you need is missing, add it rather than changing only the Windows display language. Display language and keyboard layout are separate settings.

  1. In Windows 11, open Settings > Time & language > Language & region.
  2. Open Language options for the relevant language.
  3. Under Keyboards, select Add a keyboard, then choose the required layout.

In Windows 10, use Settings > Time & Language > Language > [language] > Options > Add a keyboard. Layouts such as US QWERTY, United Kingdom, Canadian Multilingual Standard, and Dvorak use different mappings.

4. Check the advanced input-method setting

Windows can use different keyboard layouts in different applications. That makes swapped keys seem intermittent: a key works correctly in Notepad but not in a browser or game.

  1. Open Settings > Time & language > Typing.
  2. Select Advanced keyboard settings.
  3. Check Override for default input method and select the intended layout if necessary.
  4. Review Let me use a different input method for each app window. Turn it off if you want one layout everywhere.

After changing this setting, close and reopen the affected application so it obtains the new input method.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
  • All-day Comfort: The design of this standard keyboard creates a comfortable typing experience thanks to the deep-profile keys and full-size standard layout with F-keys and number pad
  • Easy to Set-up and Use: Set-up couldn't be easier, you simply plug in this corded keyboard via USB on your desktop or laptop and start using right away without any software installation
  • Compatibility: This full-size keyboard is compatible with Windows 7, 8, 10 or later, plus it's a reliable and durable partner for your desk at home, or at work
  • Spill-proof: This durable keyboard features a spill-resistant design (1), anti-fade keys and sturdy tilt legs with adjustable height, meaning this keyboard is built to last
  • Plastic parts in K120 include 51% certified post-consumer recycled plastic*

5. Turn off Num Lock when letters produce numbers

If keys such as U, I, O, J, K, and L type numbers, the keyboard may be using an embedded numeric keypad. This is common on laptops and compact keyboards and is not a keyboard-layout swap.

Press the key marked Num Lock or NumLk. On some laptops, the command is Fn+Num Lock or another manufacturer-specific combination. Look for a numeric keypad symbol printed on the keyboard if the key is not obvious.

6. Check Fn Lock and the keyboard’s hardware mode

If the function row performs media actions instead of F1–F12, or does the reverse, toggle Fn Lock. The usual shortcut is Fn+Esc, although some keyboards use a key with a lock icon or a dedicated Fn key.

Fn Lock is controlled by keyboard firmware, so Windows has no universal Fn-lock setting. Check the keyboard or laptop manufacturer’s manual when the common shortcut does not work. A hardware mode switch can also change the behavior of the function row, Mac/Windows modifier keys, or other special keys.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

7. Reset the keyboard manufacturer’s remapping utility

Gaming keyboards, programmable keyboards, and laptop hotkey packages can remap keys before Windows applications receive them. Check whether one of these utilities is installed:

  • Logitech G Hub or Options+
  • Razer Synapse
  • Corsair iCUE
  • SteelSeries GG
  • Microsoft Mouse and Keyboard Center
  • ASUS Armoury Crate
  • Laptop hotkey or control-center software

Open the utility, select the current keyboard or profile, and reset key assignments to the default profile. Also check whether a game-specific or application-specific profile is active. Temporarily exit or disable the utility and test again.

Do not run multiple remapping tools while troubleshooting. Microsoft documents compatibility issues between PowerToys Keyboard Manager and Microsoft Mouse and Keyboard Center; two utilities can overwrite or intercept each other’s mappings.

8. Create an intentional key swap with PowerToys

If the keys are physically arranged differently from the layout you want, PowerToys Keyboard Manager can provide a controlled desktop remap.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Rii RK907 Ultra-Slim Compact USB Wired Keyboard for MAC and PC-Black(1PCS)
  • A plug-and-play USB connection with Low-profile keys give you a quiet, comfortable typing experience
  • Simple Wired USB Connection,You will enjoy a comfortable and quiet typing experience
  • The keyboard for business and office working is the budget-friendly keyboard that is built for longer use
  • Low profile keys for a more comfortable and quiet keystroke, desktop-centric design, splash resistant
  1. Install and open Microsoft PowerToys.
  2. Open Settings > Keyboard Manager.
  3. Enable Keyboard Manager, then select Remap a key.
  4. Select Add key remapping.
  5. For a complete A/B swap, create both mappings:
Select: A    To send: B
Select: B    To send: A
  1. Select OK to apply the change.

The change takes effect immediately; a restart is not required. PowerToys must continue running in the background. If PowerToys is closed, its remaps stop working.

One mapping is not enough for a swap. Mapping A to B makes the original A output unavailable unless you also map B to A. PowerToys warns about these orphaned keys.

PowerToys 0.100 and later use the redesigned WinUI 3 Keyboard Manager editor by default for new installations. The legacy editor remains available through the editor toggle.

9. Remove an accidental PowerToys remap

  1. Open PowerToys Settings > Keyboard Manager.
  2. Select Remap a key.
  3. Delete the unwanted mapping row.
  4. Select OK.

You can also disable Keyboard Manager or close PowerToys to stop its remaps. PowerToys mappings do not work at the Windows sign-in screen or on password screens, so a swap that is present before sign-in probably comes from hardware, a registry mapping, or another utility.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If a remap works in normal applications but fails in an elevated application, run PowerToys elevated as well. Other keyboard-hook software can also interfere. Microsoft’s documented workaround is to disable and re-enable Keyboard Manager.

For app-specific mappings, PowerToys uses the process name rather than the visible application name. Examples are msedge.exe for Edge, chrome.exe for Chrome, and winword.exe for Word. Use tasklist and check the Image Name column; PowerShell’s Get-Process output normally omits the .exe suffix.

PowerToys cannot remap Win+L or Ctrl+Alt+Delete, and the Fn key generally cannot be remapped. Remapping Win, Ctrl, Alt, or Shift can disrupt gestures and special-key behavior. Because AltGr is implemented as left Ctrl plus right Alt, remapping either component can break it.

10. Remove a persistent Scancode Map registry remap

A registry Scancode Map is different from a PowerToys remap. It remains active without a background application, can affect the sign-in screen, and requires a restart after modification. Use this fix when the wrong key behavior appears everywhere, including before signing in.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Logitech MK120 Full Size Wired Keyboard and Mouse Combo - Black
  • Durable and Reliable: This USB keyboard features a curved space bar, spill-resistant design (2), durable keys that can withstand 10 million keystrokes, and sturdy, adjustable tilt legs
  • Comfortable, Familiar Typing: You’ll enjoy a comfortable and familiar typing experience thanks to the deep-profile keys and standard layout with full-size F-keys and number pad
  • Full-size Sculpted Mouse: The high-definition optical USB mouse puts comfort and control in your hands with smooth, accurate tracking and an ambidextrous shape that feels good hour after hour
  • Simple Set-Up: Simply plug the keyboard and mouse into the USB ports on your desktop, laptop, or netbook and you're ready to work; compatible with Windows 7, 8, 10 or later
  • Clear and Convenient: The bold, bright white and long-lasting characters make the keys on this PC or laptop keyboard easy to read and extra durable

Before changing the registry, make sure you intend to remove all mappings stored in this value. Open Command Prompt as administrator and run:

reg delete "HKLMSYSTEMCurrentControlSetControlKeyboard Layout" /v "Scancode Map" /f

Restart Windows after the command completes. This deletes the entire Scancode Map value, not just one key mapping. If no such value exists, Command Prompt reports that it could not find the specified value.

A registry remap can make a password difficult or impossible to enter at the sign-in screen. If that is your situation, use an alternate keyboard or Windows’ accessibility keyboard where available, then remove the mapping.

11. Update, roll back, or reinstall the keyboard driver

Driver work is most useful when the problem began after a Windows, device, or manufacturer update, or when a USB or Bluetooth keyboard behaves inconsistently.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Open Start, search for Device Manager, and open it.
  2. Expand Keyboards.
  3. Right-click the affected keyboard and choose Update driver.
  4. Choose Search automatically for updated driver software.

If the problem started immediately after a driver update, open Properties > Driver > Roll Back Driver instead. To reinstall the device, right-click it in Device Manager, choose Uninstall device, and restart Windows. Windows will attempt to detect and reinstall the keyboard.

For a wireless keyboard, also remove and re-pair the device. For a USB keyboard, test another port, preferably a port directly on the computer rather than through a hub.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

12. Compare the On-Screen Keyboard and another physical keyboard

This test separates a physical keyboard fault from a Windows mapping or remapping problem.

  1. In Windows 11, open Settings > Accessibility > Keyboard and turn on On-Screen Keyboard.
  2. In Windows 10, open Settings > Ease of Access > Keyboard and turn on Use the On-Screen Keyboard.
  3. Type the affected characters with the on-screen keyboard.
  4. Connect another physical keyboard, or test the keyboard on another computer.

If the On-Screen Keyboard types correctly but the physical keyboard does not, inspect the keyboard, try another USB port, replace its batteries, or remove and re-pair it. If two physical keyboards produce the same wrong characters, the active layout or a software remap is more likely.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
Lenovo 300 USB Keyboard, Wired, Adjustable Tilt, Ergonomic, Windows 7/8/10, GX30M39655, Black
  • The Lenovo 300 USB keyboard offers an intuitive and comfortable island key design with 2 5 zone layout including separate number pad
  • This full-size keyboard includes concaved key caps fitted for your fingertips
  • Spill resistant keys with a board drain help keep your PC keyboard protected and keep you productive
  • The complete ergonomic design includes an adjustable tilt to improve your typing comfort
  • OS independent – This convenient computer keyboard works with laptops desktops and any computer with a USB port

Windows’ keyboard layout and filtering systems support physical, on-screen, and touch keyboards. However, Keyboard Filter is not a general repair tool: it is an optional Device Lockdown feature intended to suppress keys and key combinations. It can be enabled through Turn Windows features on or off > Device Lockdown > Keyboard Filter, but enabling or disabling it requires a restart and is rarely appropriate for an ordinary swapped-key problem.

Which fix should you use?

Situation Best next step
Symbols or letters match another country’s keyboard Switch, add, or remove the keyboard layout
Letters type digits Turn off Num Lock
Function keys and media controls are reversed Toggle Fn Lock
Only games or one app are affected Check app profiles and Advanced keyboard settings
You deliberately need different physical mappings Use PowerToys with both directions of the swap
The swap exists at sign-in Check hardware and remove the registry Scancode Map
Another keyboard works normally Repair, replace, or re-pair the affected keyboard

FAQ

Why are my keyboard keys suddenly swapped in Windows?

The most common causes are an accidental keyboard-layout change, Num Lock, Fn Lock, a manufacturer remapping profile, PowerToys, or a persistent registry Scancode Map. Press Win+Space first to check the active layout.

How do I swap two keys permanently in Windows 11?

Use PowerToys Keyboard Manager and create two mappings, such as A to B and B to A. PowerToys must remain running, so it is not a firmware-level remap. A registry Scancode Map remains active without PowerToys but requires administrative changes and a restart.

Why does PowerToys not work in an administrator window?

PowerToys Keyboard Manager may need to run with the same elevated privileges as the target application. Run PowerToys as administrator, or disable and re-enable Keyboard Manager if another keyboard-hook utility is interfering.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can I remap the Fn key with PowerToys?

Usually no. The Fn key is generally handled by keyboard firmware rather than exposed to Windows as an ordinary remappable key. Use the keyboard’s Fn Lock shortcut instead.

Why does PowerToys stop remapping after I close it?

PowerToys Keyboard Manager applies remaps while PowerToys is running in the background. Closing PowerToys or disabling Keyboard Manager stops those remaps.

Why are the keys still wrong on the Windows sign-in screen?

PowerToys remaps do not apply at sign-in. A hardware mode, keyboard layout, manufacturer utility, or registry Scancode Map is more likely. A registry Scancode Map can affect the sign-in and password screens.

The Bottom Line

Start with Win+Space, then check Num Lock and Fn Lock. If the layout is correct, disable manufacturer remapping tools and inspect PowerToys. A swap that survives sign-out and appears at the sign-in screen points to hardware or a registry Scancode Map. Finally, compare the On-Screen Keyboard and another physical keyboard before replacing the device.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Reference documentation: Microsoft keyboard layout settings, Microsoft PowerToys Keyboard Manager, Device Manager driver instructions, and Windows Keyboard Filter documentation.

Quick Recap

Bestseller No. 1
SaleBestseller No. 2
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Logitech K120 Full Size Wired Keyboard USB Plug-and-Play Windows - Black
Plastic parts in K120 include 51% certified post-consumer recycled plastic*; Product carbon footprint: 4.02 kg CO2e
$12.34
Bestseller No. 3
Rii RK907 Ultra-Slim Compact USB Wired Keyboard for MAC and PC-Black(1PCS)
Rii RK907 Ultra-Slim Compact USB Wired Keyboard for MAC and PC-Black(1PCS)
Simple Wired USB Connection,You will enjoy a comfortable and quiet typing experience
$9.99
SaleBestseller No. 4
Logitech MK120 Full Size Wired Keyboard and Mouse Combo - Black
Logitech MK120 Full Size Wired Keyboard and Mouse Combo - Black
Product carbon footprint: 5.03 kg CO2e
$17.77
SaleBestseller No. 5
Lenovo 300 USB Keyboard, Wired, Adjustable Tilt, Ergonomic, Windows 7/8/10, GX30M39655, Black
Lenovo 300 USB Keyboard, Wired, Adjustable Tilt, Ergonomic, Windows 7/8/10, GX30M39655, Black
This full-size keyboard includes concaved key caps fitted for your fingertips; The complete ergonomic design includes an adjustable tilt to improve your typing comfort
$13.39

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.