Files & formats

Mac keyboard typing the wrong characters? Check the input source

The short answer

Click the Input menu in the menu bar and choose the layout that matches your keyboard. Open Show Keyboard Viewer and compare the key that types the wrong character with the same key on the screen.

Related sourcesApple

01Show the input menu and choose a layout

Section link

If the menu is hidden, open System Settings → Keyboard. Under Text Input, click Edit and turn on Show Input menu in menu bar. Use the menu to choose the layout you need. If it is missing, add it from the same Text Input settings.

02Compare the key in Keyboard Viewer

Section link

Choose Show Keyboard Viewer from the Input menu. Find the problem key by position. If it produces the wrong symbol only with Shift or Option held down, hold that modifier on your physical keyboard while Keyboard Viewer is open to see that version of the layout. Try typing the symbol in a blank document.

03Check why the layout changes between documents

Section link

If the input source changes when you return to a document, check Automatically switch to a document’s input source in the Text Input settings. With this option on, a document can keep using the input source you chose for it until you close it. Turn the option off if you want to choose the layout yourself when switching documents.

04Test outside the app where you noticed it

Section link

If Keyboard Viewer shows the expected layout but the app still types a different character, try the same key in a blank TextEdit document. A mismatch in only one app narrows the search to that app. If one external keyboard has the problem across apps, compare it with the built-in keyboard or another keyboard using the same input source.

Sources & further reading