I have a strange behaviour with an USB keyoboard connected to a MacBook Pro laptop. Mac OS X version: macOS Sierra 10.12.2 (16C67)

In the laptop the keys are correct, but with the external keyboard the \| keys is inverted with the <> key

How can I solve this issue? hanks.

  • I think this question has been answer earlier in these forums, but I can't find it. My recollection is that Karabiner can fix the problem. – Tom Gewecke Dec 22 '16 at 15:57
  • No problem, my friend! The point is that is not simple to find similar question typing the symbols "\" or "<"... If you manage to find the answer tell me! – Alessandro C Dec 22 '16 at 16:56
  • Do you have Karabiner Elements already installed by chance? – Tom Gewecke Dec 22 '16 at 20:05
  • Bear in mind that people with English layout keyboards with the same basic problem will be asking about different keys, such as backtick/grave. You are using Spanish ISO, right? – Tom Gewecke Dec 22 '16 at 20:06
  • @TomGewecke Unfortunately I can't install Karabiner because, as reported in the official site, "macOS Sierra support status - Karabiner does not work on macOS Sierra at the moment." I'm using the Italian keyboard. – Alessandro C Dec 23 '16 at 8:34

This can be caused when the OS mis-identifies the keyboard. To get that back, clear the preference that saves which device is which layout.

How to reset the mac keyboard

I made as described in the post:

  1. Delete the file /Library/Preferences/com.apple.keyboardtype.plist
  2. Disconnect the keyboard
  3. Reconnect the keyboard
  4. Restart the os

After doing these steps, the keyboard had to be recognized again, and it fixes the issue.

The correct keyboard for Italian is ISO (Eur).

  • Very interesting! Normally I would expect a problem with that .plist to affect both internal and external keyboards. – Tom Gewecke Dec 23 '16 at 15:08
  • Had this issue on my Hackintosh, with a Corsair K70 LUX RGB mechanical keyboard using ckb-next as driver. This worked, thanks! – Manchineel Jan 15 at 21:29
  • 1
    This helped me to solve the same problem on a late 2011 Mac Book Pro and an external logitech k120 italian keyboard. Thank you a lot. Vabbè... visto il nome.... grazie mille Alessandro. – Patrizio Mar 3 at 14:03
  • @Patrizio Figurati! :) – Alessandro C Mar 4 at 10:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .