Is there any way to reinitialize an external third party USB keyboard? I hit a wrong key after MACOS detected the new keyboard hardware. Now, my keymapping is not correct.

I need to remove or reinitialize it (repeating the hardware detection).

Any ideas?

  • Tell us what the right and wrong keymappings are that you are referring to. – Tom Gewecke Aug 13 '18 at 9:37
  • See this note for more info on changing the keyboard type m10lmac.blogspot.com/2009/12/fixing-keyboard-type-problems.html – Tom Gewecke Aug 13 '18 at 9:37
  • Great. That solved my problem. I wrote it down as general solution. – berlin104 Aug 13 '18 at 9:53
  • This happens a lot for me - the ` and \ keys get swapped. Annoyingly the Change Keyboard Type button in Keyboard preferences disappears when I need it to fix this. Still an issue with Mojave. Luckily the answer from @berlin104 resolves that problem and allows setting the Keyboard Type as ISO which fixes things. – dunxd Dec 3 '19 at 14:22
  • I have discovered that I can bring the Change Keyboard Type button back by clicking the Set Up Bluetooth Keyboard button and removing my keyboard, then reconnecting it. This does bring the button back but clicking on it does nothing - in console I see an entry for KeyboardSetupAssistant that says "No unknown keyboard connected - terminating". Looks like fixing this always requires a reboot. How annoying! – dunxd Dec 11 '19 at 14:54

Try going to System Preferences -> Keyboard and click the "Change Keyboard Type..." button in the lower left corner. This should restart the keyboard type detection.

enter image description here

  • Thanks. I already tried this, but it seems that the button don't work. Nothing happens when I trigger it. – berlin104 Aug 13 '18 at 8:59
  • @berlin104 Hm, strange. For me it opens a new window with the Keyboard Setup Assistant and lets me continue to setup the keyboard again. Might it be that the window pops up underneath another or off screen? – Lizzan Aug 13 '18 at 9:02
  • Jap. That's really strange... I don't see this button always. Seems that it appears random. – berlin104 Aug 13 '18 at 9:08
  • This is the correct answer, but the Change Keyboard Type button is often missing, so berlin104's answer is the one that works in that case. – dunxd Dec 3 '19 at 14:25

I found a solution. If anyone stumbles over this thread (Thanks to TOM - see: https://m10lmac.blogspot.com/2009/12/fixing-keyboard-type-problems.html):

Remove the keyboard file (see command), unplug the USB keyboard and reboot. Reconnect the keyboard which opens the keyboard detection assistant.


rm /Library/Preferences/com.apple.keyboardtype.plist 

You must log in to answer this question.

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