Mac Keyboard Typing Wrong Characters? Here's the Fix
If Shift+2 gives you " when you expect @, or letters come out with the wrong symbols entirely, your keyboard is fine — your Mac is interpreting it with the wrong layout. macOS calls layouts “input sources”, and it is easy to end up with more than one installed and to switch between them without noticing. Here is how to check which one is active and get back to the layout your keyboard actually has printed on it.
Check which layout is active
The classic symptom is the US/British swap: on a US layout @ sits on Shift+2 and " on Shift+'; on a British layout they trade places, and Shift+3 types £ instead of #. If accented characters or entirely different letters appear, you may be on an international layout such as U.S. International — PC, or a different alphabet altogether.
- Look at the right side of the menu bar. If you have more than one input source installed, macOS shows an input menu — a small icon with the layout's abbreviation or flag. Click it to see which source is ticked.
- If the ticked layout is not the one on your physical keyboard, click the correct one. The fix is instant — test in any text field.
- No input menu visible? You probably have only one layout installed, and the problem is elsewhere (see the last section).
Remove layouts you never meant to add
Switching back fixes the moment; removing the stray layout fixes it for good.
- Open System Settings → Keyboard.
- Under Text Input, click Edit… next to Input Sources.
- In the left column, select the layout you don't want and click the − button. macOS keeps at least one layout, so you can't strand yourself.
- Click Done.
To undo, reopen the same sheet, click +, and add the layout back — nothing else changes.
Stop it happening again
Stray layouts usually arrive one of two ways: you (or Setup Assistant) added a second language at some point, or you have been toggling sources with a shortcut without realising. By default, Ctrl+Space switches to the previous input source and Ctrl+Option+Space cycles through all of them — easy combos to hit while reaching for Cmd+Space.
- Check the shortcuts under System Settings → Keyboard → Keyboard Shortcuts… → Input Sources. If you only ever use one layout, untick both so nothing can switch behind your back.
- In the Input Sources edit sheet, consider turning off Automatically switch to a document's input source — it re-activates whichever layout you last used in a given app.
If you genuinely need two layouts — say, US English and German — keep the input menu visible so a glance tells you which is live. In the same edit sheet, make sure Show Input menu in menu bar is on. It costs a few pixels of menu bar and saves you from typing half an email on the wrong layout.
Not sure what layout your keyboard physically is?
Add the input menu (above), then choose Show Keyboard Viewer from it. An on-screen copy of the current layout appears, and every key you press lights up. Type the problem characters: if the on-screen keyboard shows different symbols on those keys than your physical keys have printed, the layouts don't match — switch input sources until the viewer mirrors what's under your fingers. The viewer also updates live as you change sources, which makes it the quickest way to identify a mystery layout by sight.
Mainspring turns 90+ hidden macOS settings into labelled, reversible toggles — so keyboard, Finder, and Dock tweaks are one click to apply and one click to undo.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once
Still typing garbage on the right layout?
If the correct layout is active and single keys still misbehave, the keyboard itself is the suspect — sticky modifier keys, debris under a key, or a flaky Bluetooth connection. Open the Keyboard Viewer (add the input menu, then choose Show Keyboard Viewer) to watch each keypress register on screen, and see our keyboard troubleshooting guide for the full checklist.