Keyboard typing wrong letters? Usually a setting, not a broken key
You press one key and a different character appears, or symbols land on the wrong keys. That pattern points to layout and settings far more often than to broken hardware. Here is how to tell which it is.
Press the keys in a keyboard test. If the test shows the expected key, the keyboard is fine and the wrong characters come from the input language, layout, Num Lock, or an accessibility setting. If the test itself shows the wrong key, check the layout, Fn lock and the hardware.
Do it in your browser
Why keys produce the wrong character
A keyboard does not send letters. It sends the position of the key that was pressed, and the operating system turns that position into a character using the active layout. If the layout does not match the printed keys, positions are translated differently, so a US-labelled keyboard set to a UK layout moves the quotation mark, the at sign and the backslash, and a keyboard set to French swaps some letters entirely. The hardware is working exactly as built.
Several other settings change output without a layout change. Num Lock or an Fn lock on a laptop turns a block of letter keys into number keys. Sticky Keys and Filter Keys make modifiers stay on or ignore short presses. Caps Lock inverts the case. Third-party tools, such as macro or remapping software, can also redirect keys without any visible sign.
The genuine hardware causes are less common, but they exist. A dirty or worn switch can register twice and type doubled letters. A matrix fault can cause a key to trigger a neighbor. Telling these apart from layout problems is the first step, and a test that shows raw key events is the best way to do it.
How to stop the wrong letters
- Open the keyboard test, select the layout that matches the printed keys, and press the key that gives the wrong character. Watch which key turns green and what the Event log shows.
- If the correct key lights up, the keyboard is sending the right signal. Check Settings > Time & language > Language & region on Windows 11 and look at the keyboard layout list. Remove layouts you do not use and keep the one that matches your keyboard.
- Check the language switcher near the clock. The shortcut Windows key + Space cycles layouts, and Alt + Shift can switch them by accident. If the indicator shows a different language, switch back and test again.
- On a Mac open System Settings > Keyboard > Text Input > Input Sources and check which input source is active. The input menu in the menu bar can switch it.
- Turn off Sticky Keys, Filter Keys and Toggle Keys under Settings > Accessibility > Keyboard on Windows 11. Press Num Lock and Caps Lock once each and see whether the behavior changes.
- If your laptop types numbers instead of letters on the right side, switch off the Num Lock or Fn lock combination for that block of keys.
- Quit remapping or macro software, restart the computer, and test again. If the keyboard test itself shows the wrong key for a physical key, clean the key and try another keyboard to confirm the hardware.
Common wrong-character patterns
The kind of mistake is a strong clue. Typing a quotation mark and getting the at sign, or the reverse, is the classic US versus UK layout mismatch. Typing Z when you press Y, or A when you press Q, means a German or French layout. Typing numbers on the letter keys J, K, L, U, I and O suggests the laptop's embedded number pad is on.
Everything shifted by one character, or capital letters you did not ask for, is more likely a stuck Shift key or Caps Lock. Use the test to press modifiers alone and see whether any remain lit after release.
Doubled or missing letters
If one press gives two characters, the switch may be chattering: the contacts bounce and close twice within a few milliseconds. The keyboard test marks presses that repeat within a very short time, and if the same key is flagged repeatedly it needs cleaning or replacing. Letters that appear only sometimes are often a sign of Filter Keys, which ignores quick presses by design.
A key that never types but lights in the test is blocked by a setting or program, while a key that is grey in the test is a hardware fault.
Mixed up after connecting another keyboard
Windows can store a layout for each device and sometimes applies the wrong one when you connect a keyboard. If a Bluetooth or USB keyboard prints different characters than the built-in one, check its layout in the settings and match the physical labels. Gaming keyboards also have onboard profiles stored in the keyboard that can remap keys, and the vendor software can reset them.
Remote desktop and virtual machines
A remote session or virtual machine has its own layout. The characters you see come from the remote system's layout, not the local one, so a mismatch appears even when your keyboard is correct. Set the remote system's layout to match the keyboard you are using, or enable the option to use the local layout if the client offers one.
When the browser test is not enough
The test sees which physical key reached the browser, but the browser may reserve a few shortcuts and the operating system may react to others before the page does. It also cannot repair layouts. What you press in the test is not stored or sent anywhere.
Frequently asked questions
Why is my keyboard typing the wrong letters?
Most often the input language or layout does not match the printed keys. Num Lock, Sticky Keys and Filter Keys can also change what you get. A keyboard test confirms whether the keys themselves are correct.
Why does my at sign and quotation mark swap places?
That is the typical difference between a US and a UK layout. Open the language settings and select the layout that matches your keyboard.
How do I change my keyboard layout back to normal?
On Windows 11 open Settings > Time & language > Language & region, open your language options and select the right keyboard. On a Mac use System Settings > Keyboard > Input Sources.
Why is my keyboard typing numbers instead of letters?
A laptop with an embedded number pad has Num Lock or an Fn lock on. Press the Num Lock key or the Fn combination to turn it off.
Why does my keyboard type two letters at once?
The switch may be chattering, or Windows may have a repeat setting enabled. Test the key; if it is flagged, clean it or replace the switch or keyboard.
Could a virus cause wrong letters?
It is unlikely. Consistent wrong characters almost always come from a layout, a setting or a remapping program, so check those first.
More guides
- Laptop keyboard keys not working: find out why, then fix it One key, a row of keys, or the whole laptop keyboard has stopped responding. A laptop keyboard cannot be swapped like a desktop one, so the cause matters. A quick test shows whether the keys fail at the hardware level or only in software.
- How to test keyboard ghosting and check your rollover Ghosting is when you hold several keys and one of them does not register or a phantom key appears. It matters mostly in games and fast typing. A simple combination test shows how many keys your keyboard can report at once.
- Keyboard key not working? Find out which keys register Before you replace a keyboard, find out exactly which keys fail and whether the cause is a setting, a layout mix-up or worn hardware.
- Mouse double clicking by itself: how to test and fix it When one click opens two windows, drops dragged files or fires twice in games, the mouse switch is usually wearing out. Here is how to prove it and what actually fixes it.
- Backlight bleed test: how to run it and how to read it Light leaking from the edges of a dark screen is common on LCD monitors and laptops. Some of it is normal, some of it is a defect. The test is simple, but only the right conditions and the right reading give a fair answer.
Updated Nov 20, 2026