How to Fix a Mac Keyboard Swapping the @ and Double Quote Keys

Typing an email address on your Mac only to see " appear instead of @ — or watching # turn into a pound sign (£) — almost never means your keyboard is broken. It means macOS is using a different regional keyboard layout than the physical key labels printed on your MacBook or external keyboard.

This mix-up is especially common in the UK and Ireland when plugging an external Windows USB or Bluetooth keyboard into a Mac, or after accidentally pressing a language-switch key that toggled between British, British – PC, and U.S. layouts.

Pick the Exact Layout Matching Your Physical Keyboard

Apple’s own UK keyboards print @ above the number 2 and " next to Enter, whereas standard Windows PC UK keyboards put " above 2 and @ next to Enter. macOS includes separate presets for both.

  1. Click the Apple logo at the top-left of your screen and open System Settings.
  2. Scroll down the left sidebar and click Keyboard.
  3. Under Text Input, click the Edit button beside Input Sources.
  4. Look at the list on the left:
    • If you use an Apple MacBook or Apple Magic Keyboard (UK) where @ is printed on key 2, keep British.
    • If you use a Windows-style external UK keyboard where " is printed on key 2 and @ shares the apostrophe key, click the + button at bottom-left -> choose English -> add British – PC, then select the wrong layout and click – to remove it.
    • If you use an American ANSI keyboard (no Pound sterling key, @ above 2, # above 3), choose U.S. (or ABC) and remove British layouts.

Check the Menu Bar Input Switcher

If your Mac types fine one day and suddenly swaps keys the next, you probably tapped the Globe (Fn) key or Control + Space shortcut and flipped to a secondary layout sitting silently in the background.

  1. Inside System Settings -> Keyboard -> Input Sources -> Edit, turn Show Input menu in menu bar to On.
  2. Look near the Wi-Fi and clock area at the top-right of your Mac screen for a small flag or language label (such as British or U.S.).
  3. Click it and switch back to the layout matching your keys, and remove any unwanted secondary layouts from the Edit list so accidental keystrokes never switch it again.

Re-Run Keyboard Setup Assistant for Swapped Backtick or Hash Keys

If keys near the Left Shift or Enter key — such as backslash (), tilde (~), or the section key — are swapped on an external USB or Bluetooth keyboard, macOS misidentified whether the hardware is UK/European (ISO) or US (ANSI).

  1. Make sure your external keyboard is connected, then open System Settings -> Keyboard.
  2. Scroll down and click Change Keyboard Type.
  3. Follow the on-screen Keyboard Setup Assistant prompt: press the key immediately to the right of your Left Shift key so macOS detects the physical layout accurately, then confirm the keyboard type (ISO for standard UK/European layouts with the tall Return key, or ANSI for US layouts with the wide Shift key).

Matching your Input Source (British vs British – PC vs U.S.) and clearing spare layouts fixes swapped @, ", and # keys immediately across every Mac app.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.