Function keys Magic Keyboard not bound correctly
I was able to make it work on Mavericks at least when connected over the USB-to-Lightning cable by applying this patch:

--- /System/Library/Extensions/AppleTopCase.kext/Contents/PlugIns/AppleTopCaseHIDEventDriver.kext/Contents/Info.plist.orig  2017-01-10 20:28:14.000000000 +0100
+++ /System/Library/Extensions/AppleTopCase.kext/Contents/PlugIns/AppleTopCaseHIDEventDriver.kext/Contents/Info.plist   2017-01-10 20:31:55.000000000 +0100
@@ -38,6 +38,38 @@
    &lt;string&gt;5A2053&lt;/string&gt;
    &lt;key&gt;IOKitPersonalities&lt;/key&gt;
    &lt;dict&gt;
+       &lt;key&gt;Keyboard-Event - 615&lt;/key&gt;
+       &lt;dict&gt;
+           &lt;key&gt;CFBundleIdentifier&lt;/key&gt;
+           &lt;string&gt;com.apple.driver.AppleHIDKeyboard&lt;/string&gt;
+           &lt;key&gt;CapsLockDelay&lt;/key&gt;
+           &lt;integer&gt;75&lt;/integer&gt;
+           &lt;key&gt;DeviceUsagePairs&lt;/key&gt;
+           &lt;array&gt;
+               &lt;dict&gt;
+                   &lt;key&gt;DeviceUsage&lt;/key&gt;
+                   &lt;integer&gt;6&lt;/integer&gt;
+                   &lt;key&gt;DeviceUsagePage&lt;/key&gt;
+                   &lt;integer&gt;1&lt;/integer&gt;
+               &lt;/dict&gt;
+           &lt;/array&gt;
+           &lt;key&gt;FnKeyboardUsageMap&lt;/key&gt;
+           &lt;string&gt;0x00070050,0x0007004a,0x00070052,0x0007004b,0x0007002a,0x0007004c,0x0007004f,0x0007004d,0x00070051,0x0007004e,0x00070028,0x00070058&lt;/string&gt;
+           &lt;key&gt;FnModifierUsage&lt;/key&gt;
+           &lt;integer&gt;3&lt;/integer&gt;
+           &lt;key&gt;FnModifierUsagePage&lt;/key&gt;
+           &lt;integer&gt;255&lt;/integer&gt;
+           &lt;key&gt;IOClass&lt;/key&gt;
+           &lt;string&gt;AppleHIDKeyboardEventDriverV2&lt;/string&gt;
+           &lt;key&gt;IOProviderClass&lt;/key&gt;
+           &lt;string&gt;IOHIDInterface&lt;/string&gt;
+           &lt;key&gt;NumLockKeyboardUsageMap&lt;/key&gt;
+           &lt;string&gt;0x00070029,0x00070029,0x0007002a,0x0007002a,0x0007002b,0x0007002b,0x0007003a,0x0007003a,0x0007003b,0x0007003b,0x0007003c,0x0007003c,0x0007003d,0x0007003d,0x0007003e,0x0007003e,0x0007003f,0x0007003f,0x00070040,0x00070040,0x00070041,0x00070041,0x00070042,0x00070042,0x00070043,0x00070043,0x00070044,0x00070044,0x00070045,0x00070045,0x0007004a,0x0007004a,0x0007004b,0x0007004b,0x0007004c,0x0007004c,0x0007004d,0x0007004d,0x0007004e,0x0007004e,0x0007004f,0x0007004f,0x00070050,0x00070050,0x00070051,0x00070051,0x00070052,0x00070052,0x0007000d,0x00070059,0x0007000e,0x0007005a,0x0007000f,0x0007005b,0x00070018,0x0007005c,0x0007000c,0x0007005d,0x00070012,0x0007005e,0x00070024,0x0007005f,0x00070025,0x00070060,0x00070026,0x00070061,0x00070010,0x00070062,0x00070037,0x00070063,0x00070082,0x00070082,0x000700e0,0x000700e0,0x000700e1,0x000700e1,0x000700e2,0x000700e2,0x000700e3,0x000700e3,0x000700e4,0x000700e4,0x000700e5,0x000700e5,0x000700e6,0x000700e6,0x000700e7,0x000700e7&lt;/string&gt;
+           &lt;key&gt;ProductID&lt;/key&gt;
+           &lt;integer&gt;615&lt;/integer&gt;
+           &lt;key&gt;VendorID&lt;/key&gt;
+           &lt;integer&gt;1452&lt;/integer&gt;
+       &lt;/dict&gt;
        &lt;key&gt;Keyboard-Event - 656&lt;/key&gt;
        &lt;dict&gt;
            &lt;key&gt;CFBundleIdentifier&lt;/key&gt;
--- /System/Library/Extensions/AppleTopCase.kext/Contents/PlugIns/AppleUSBTopCaseDriver.kext/Contents/Info.plist.orig   2017-01-10 20:27:50.000000000 +0100
+++ /System/Library/Extensions/AppleTopCase.kext/Contents/PlugIns/AppleUSBTopCaseDriver.kext/Contents/Info.plist    2017-01-10 20:44:53.000000000 +0100
@@ -38,6 +38,52 @@
    &lt;string&gt;5A2053&lt;/string&gt;
    &lt;key&gt;IOKitPersonalities&lt;/key&gt;
    &lt;dict&gt;
+       &lt;key&gt;USBHIDDriver&lt;/key&gt;
+       &lt;dict&gt;
+           &lt;key&gt;CFBundleIdentifier&lt;/key&gt;
+           &lt;string&gt;com.apple.driver.AppleUSBTopCaseDriver&lt;/string&gt;
+           &lt;key&gt;IOClass&lt;/key&gt;
+           &lt;string&gt;AppleUSBTopCaseHIDDriver&lt;/string&gt;
+           &lt;key&gt;IOProviderClass&lt;/key&gt;
+           &lt;string&gt;IOUSBInterface&lt;/string&gt;
+           &lt;key&gt;bConfigurationValue&lt;/key&gt;
+           &lt;integer&gt;1&lt;/integer&gt;
+           &lt;key&gt;bInterfaceNumber&lt;/key&gt;
+           &lt;string&gt;*&lt;/string&gt;
+           &lt;key&gt;ProductID&lt;/key&gt;
+           &lt;integer&gt;615&lt;/integer&gt;
+           &lt;key&gt;idVendor&lt;/key&gt;
+           &lt;integer&gt;1452&lt;/integer&gt;
+       &lt;/dict&gt;
+       &lt;key&gt;USBHIDDriver - DM&lt;/key&gt;
+       &lt;dict&gt;
+           &lt;key&gt;CFBundleIdentifier&lt;/key&gt;
+           &lt;string&gt;com.apple.driver.AppleUSBTopCaseDriver&lt;/string&gt;
+           &lt;key&gt;ExtendedData&lt;/key&gt;
+           &lt;array&gt;
+               &lt;integer&gt;50399649&lt;/integer&gt;
+               &lt;integer&gt;50465185&lt;/integer&gt;
+               &lt;integer&gt;50530721&lt;/integer&gt;
+               &lt;integer&gt;50596257&lt;/integer&gt;
+               &lt;integer&gt;61868449&lt;/integer&gt;
+               &lt;integer&gt;61933985&lt;/integer&gt;
+               &lt;integer&gt;61999521&lt;/integer&gt;
+               &lt;integer&gt;62065057&lt;/integer&gt;
+               &lt;integer&gt;62261665&lt;/integer&gt;
+           &lt;/array&gt;
+           &lt;key&gt;IOClass&lt;/key&gt;
+           &lt;string&gt;AppleUSBTopCaseHIDDriver&lt;/string&gt;
+           &lt;key&gt;IOProviderClass&lt;/key&gt;
+           &lt;string&gt;IOUSBInterface&lt;/string&gt;
+           &lt;key&gt;bConfigurationValue&lt;/key&gt;
+           &lt;integer&gt;1&lt;/integer&gt;
+           &lt;key&gt;bInterfaceNumber&lt;/key&gt;
+           &lt;string&gt;0&lt;/string&gt;
+           &lt;key&gt;ProductID&lt;/key&gt;
+           &lt;integer&gt;615&lt;/integer&gt;
+           &lt;key&gt;idVendor&lt;/key&gt;
+           &lt;integer&gt;1452&lt;/integer&gt;
+       &lt;/dict&gt;
        &lt;key&gt;AppleTopCase&lt;/key&gt;
        &lt;dict&gt;
            &lt;key&gt;CFBundleIdentifier&lt;/key&gt;


like so (assuming you save the patch in a file named MagicKeyboard.patch):

sudo sh -c '(cd /; patch -p0) &lt; MagicKeyboard.patch'


and rebuilding the kext cache using:

sudo kextcache -f -update-volume /


After reboot your Magic Keyboard should be fully functional when connected over the cable.