Just yesterday I bought an Apple Magic Keyboard 2, even if I have like 5 mechanical keyboards, because I wanted to try it and it was wireless.
My main OS is Windows 10, I love it and I don’t want to change it so with that in mind I knew that it would be necessary to do some things to make the keyboard work perfectly. I know how Apple works and how they like to keep their devices to their ecosystem.
If you pair the keyboard, you will recognize a few things:
- Function keys don’t work
- Some keys are mapped wrong (this happened to me in the spanish version)
In order to make it work, I had to read a lot from the web, but these two links are the ones that helped me to make it work:
- Make full use of Apple Magic Keyboard/Mouse/Trackpad on Windows
- How do I use my f-1 - f12 keys without pressing FN on Windows 7 using bootcamp on a Macbook Pro?
Installing the Apple Keyboard driver
Some of this steps are from the documentation noted before:
- Install 7zip to your computer if you don’t have it.
- Install Python (version 2.x) to your computer if you don’t have it.
- IMPORTANT: The latest version of the Python is 3.x. But, you need version 2.x because the brigadier script is not compatible with version 3.x.
- (option) The installer, by default, doesn’t add python.exe to your PATH. If you want, you need to enable this option. (see the screenshot on the right)
- If you already have another version of Python, you probably don’t want to enable this option.
- Download brigadier (a Python script that helps you to download the latest Boot Camp version).
- Please right-click the following link and save the file using “Save link as…”. https://raw.githubusercontent.com/timsutton/brigadier/master/brigadier
- Open command prompt window (aka. DOS box) and change directory to where you downloaded the brigadier script.
- Assuming the brigadier script was saved as “brigadier.txt”, please run the following command:
- If Python version 2.x is in your PATH: python brigadier.txt –model=MacBook13,2
- Otherwise: [Path to the Python version 2.x]\python.exe brigadier.txt –model=MacBook13,2
- It will download a big bundle with all the drivers from bootcamp
- Create a folder called
BootCampand copy the
- Run an admin powershell and execute the
BootCamp.msi, it will install some stuff but we need to update the driver using the contents of the
- Start Device Manager (
Human Interface Devicesnode
- Look for
Bluetooth HID Device
- Update the driver using the contents of the
- Reboot computer
You should see the bluetooth keyboard now detected as a Apple Keyboard
Update FN keys behavior
If you installed everything properly you will notice that the FN keys are enabled by default, it means that you need to press
F5 to actually press the
In order to fix this, I found a solution, noted in the documentation section, that works by changing some entry in the regedit.
- Open regedit
- Go to
HKEY_CURRENT_USER\SOFTWARE\Apple Inc.\Apple Keyboard Support
- Create or update
OSXFnBehaviorandset it to
- Reboot computer
Update keys mapping
If you have a problem with the mappings, you can use SharpKeys and update them.
It’s really simple to use, but remember to logout or restart the computer to enable the updates, since it updates the registry.
For my case, I had to update the