Skip to content

Using an Apple Magic keyboard

Rob Janssen edited this page Feb 15, 2018 · 4 revisions

You can try these mappings when using an Apple Magic Keyboard (with numpad):

Screenshot

This is the registry data:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,0c,00,00,00,37,e0,64,00,46,00,65,00,\
  20,e0,67,00,6a,e0,68,00,2e,e0,69,00,30,e0,6a,00,45,00,45,e0,5b,e0,38,00,38,\
  00,5b,e0,5c,e0,38,e0,38,e0,5c,e0,00,00,00,00

Save the above in a .reg file (e.g. "apple_keyboard.reg" for example), double-click the file, allow it to be imported. Log off and back on (you may need to reboot) and you're set!

This maps:

  • F13 -> PrtScr
  • F14 -> Scroll Lock
  • F15 -> Sorry, can't map to break
  • F16 -> (Un)Mute
  • F17 -> Web: Back
  • F18 -> Volume Down
  • F19 -> Volume Up
  • Clear -> NumLock
  • Left Option -> Left Windows
  • Left Command -> Left Alt
  • Right Option -> Right Windows
  • Right Command -> Right Alt

Unfortunately the key (between F12 and F13) and the fn button cannot be mapped† (the latter would be mapped to insert).

Tip: combine the above settings with Tray Status Pro to show the numlock and caps-lock states (can also do scroll-lock).

The menu key is missing on the Apple Magic Keyboard so it's not mapped in the above (maybe possible to use F17 for; but haven't figured out the codes (yet)). The rest works as expected.


†I have found some useful / hopeful information here but haven't got it working yet; the process will need to be 'customized' or 'updated' to the latest standings. For example: the registry key mentioned is no longer in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\KeyMagic\ but in Computer\HKEY_CURRENT_USER\Software\Apple Inc.\Apple Keyboard Support\. The latest (as far as I'm aware) BootCamp software can be found here and it's easy to extract only BootCamp.msi and AppleKeyboardInstaller64.exe. You can then run Bootcamp.msi (from an elevated prompt or by "Run as Administrator") and if you only extracted the Keyboard Installer it won't install anything else. The registry key will be there but changing the value mentioned (OSXFnBehavior) to 0 doesn't make the fn work (yet). I will try to find a solution from time-to-time when I have some spare time to tinker with this. But don't ask me for any progress. If it's not mentioned here it there won't be any.

Based on #64