How to reset the Mac keyboard

mac_keyboard_detectionMacs, known for their elegant design, often require knowing different ways to do such things as changing your browser, learning where your folders are, or even changing your inkjet cartridges.   Here is the easiest way to reset your keyboard. The screenshot you see here on the left shows a Mac OS X (Leopard) window that pops up when a new usb keyboard is connected. It asks user to press the key on the right of (left) shift, to detect the correct international map. Yesterday I had a problem with the keyboard of a Mac Mini I have in my office network: “<>” and “\” keys were swapped.

In the italian keyboard, “<>” is the key on the right of left-shift, and “\” (the backslash) is above the TAB key.

Apparently without any valid reason, these keys reversed their position, like (I think) they are on official Apple keyboards (I use instead a normal Toshiba PC keyboard). I tried to disconnect and reconnect the USB plug, but the selection window didn’t appear – I think because the system “remembers” that keyboard, so it doesn’t think it’s necessary to ask user to press keys to detect it again.

After a lot of Googling, I found that it’s necessary to delete a file to make Mac OS completely forget keyboard settings:
/Library/Preferences/com.apple.keyboardtype.plist

So, after the deletion of this file, I reconnected the keyboard and I completed the dection wizard. Keys are now fixed :)

This entry was posted in Mac, Tricks and tagged , . Bookmark the permalink. Trackbacks are closed, but you can post a comment.

31 Comments