I have a strange behaviour with an USB keyoboard connected to a MacBook Pro laptop.

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?

Mac OS X version: macOS Sierra 10.12.2 (16C67)


  • 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

After a long research, I have found this article on the web:

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 pc

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 yesterday

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.