Repository navigation
Releases
MagicKeys 0.2.3
A tidy-up release. Early build, Dev channel.
What's new
The README installed next to the app is now a short guide in Russian. It used to be a 75 KB technical essay. Now it covers what you actually need: how to install, what the app does, what it requires, which addresses it contacts and what it changes on your system.
The app itself works exactly as it did in 0.2.2. The "What's new" window looks the same, and nothing about remapping or layouts has changed.
What changed in the repository
- The source code now lives in
src/, and the build script isscripts\build.cmd. - The README and changelog are in English, with Russian versions alongside (
README.ru.md,CHANGELOG.ru.md). The changelog follows Keep a Changelog; the "What's new" window reads the Russian one. - New:
SECURITY.md(to report a vulnerability, use Security → Report a vulnerability),ARCHITECTURE.md, andNOTICE.md, which credits the Unicode CLDR layout data and carries its license.
Installing
Download MagicKeys-0.2.3-x64.msi and run it. It installs into Program Files, so Windows will ask for admin rights. The only requirement is .NET Framework 4.x, which every Windows 11 machine already has.
The package is signed with my own certificate, so Windows will say the publisher is unknown. The thumbprint is 103850469089DEECC19D0DD6CE1D4DD3307601FA — the app checks for exactly this one when it updates itself and won't install a package signed by anyone else.
SHA-256: 768045787F17C5479C9B55B8E90744D7E1D5C7192317ECD2ADBE6009453BA7CD
How it was tested
The test suite is 576 checks, and all of them passed on the release commit. The changelog now goes through a new parser that turns the Keep a Changelog groups into the same badges as before, and the English and Russian files have to list the same versions.
What wasn't tested. Nobody opened the "What's new" window in the built app by eye — only the test suite checked it. This release wasn't run on a real keyboard either, since nothing about key handling changed. That's why it's an early build.
License
GNU General Public License v3 or later. All of the source is right here.
MagicKeys 0.2.2
"What's new" opens inside the app. Early build, Dev channel.
What's new
The whole release history now lives inside the app. The "What's new" button used to take you to the releases page in your browser, which let down the person who presses it most: someone who has just updated. Their version might not be on that page at all, and a build you made yourself never is. Now the history opens in a window, works offline, and marks the version you're running.
Everything else is the same as in 0.2.1: the top-row icons, square corners on the older keyboards, the Enter key on European and Japanese layouts, the honest wording about Fn.
Why straight to 0.2.2
The 0.2.1 package got built twice — once before the new window existed and once after. Both had the same version number but different contents, and the updater can't tell builds like that apart: it only looks for a strictly higher number. Anyone who installed the first one would have been stuck with it for good. So the fix ships under its own number, and everyone will see it.
Installing
Download MagicKeys-0.2.2-x64.msi and run it. It installs into Program Files, so Windows will ask for admin rights. The only requirement is .NET Framework 4.x, which every Windows 11 machine already has.
The package is signed with my own certificate, so Windows will say the publisher is unknown. The thumbprint is 103850469089DEECC19D0DD6CE1D4DD3307601FA — the app checks for exactly this one when it updates itself and won't install a package signed by anyone else.
SHA-256: 3D70D673DE0767F0EAEDDCCCFDC932A2A97DE3DD4E956218EE06CB53DF8CB8AD
How it was tested
The test suite is 809 checks, and the changelog is now part of it: does the file parse, does every release have a number and a date, is every badge one of the three allowed ones, is any line long enough to be a paragraph — and does the newest entry match the app's own version. That last check catches exactly the mistake that made this release necessary.
Still not tried on a real keyboard. Right Control and ⏏ were measured from photos and covered by tests, but no presses from an actual keyboard made it into this release. The Japanese and aluminium keyboards haven't been tried on hardware at all. That's why this is an early build.
License
GNU General Public License v3 or later. All of the source is right here.
MagicKeys 0.2.1
The keyboard drawing finally looks like a keyboard. Early build, Dev channel.
This whole release came from someone with a real Magic Keyboard looking at the drawing and pointing out every place where it wasn't quite right. They were right every time.
What's new
"What's new" opens in its own window inside the app. The button used to send you to the releases page in your browser, which failed exactly the person most likely to press it: someone who has just updated. Their version might not be on that page at all, and a build you made yourself never is. Now the whole history lives inside the app and works offline.
Icons on the top row. Apple never prints a bare "F1": the key has an icon, with the number small underneath. That's how they're drawn now — the brightness sun, the Mission Control windows, the Launchpad grid, the playback triangles, the speaker with sound waves. Each generation gets its own set: the 2015–2017 Magic Keyboard really has nothing printed on F5 and F6, the aluminium keyboards have backlight keys there, and the 2021 models have dictation and Do Not Disturb.
Icons instead of words, where Apple prints icons. ⏏ in the top-right corner, ⌦ in the navigation block, solid triangles on the arrows, the little light on Caps Lock. The word hasn't gone anywhere — it's in the tooltip. They're drawn as shapes rather than text, because the system font has no ⏏ at all.
Corner radius by generation. Measured: on the Magic Keyboard with Numeric Keypad (A1843) the corner straightens out after 0.25 of a key; on the 2021–2024 models it's twice as round, 0.445–0.513. The older keyboards are noticeably squarer, and using the same radius on all of them gave the drawing away at a glance.
The Enter key on European and Japanese layouts no longer looks odd. It used to be two rounded rectangles stuck together, and their corners poked out at the seam — instead of a notch cut into the key you got a stepped lump with a line through it. Now it's one shape with a proper inward corner, and the label sits bottom-right, like on the real key.
MagicKeys no longer says anything untrue about Fn. The old wording read like "Fn is useless", and an owner whose Fn works fine rightly objected. Now it says both halves: not a single Fn event reaches Windows (that was measured), and what Fn does is up to the keyboard itself and Apple's driver.
Installing
Download MagicKeys-0.2.1-x64.msi and run it. It installs into Program Files, so Windows will ask for admin rights. The only requirement is .NET Framework 4.x, which every Windows 11 machine already has.
The package is signed with my own certificate, so Windows will say the publisher is unknown. The thumbprint is 103850469089DEECC19D0DD6CE1D4DD3307601FA — the app checks for exactly this one when it updates itself and won't install a package signed by anyone else.
SHA-256: 7B966EFED56F71F14BDCD2637F8BE17A21A6BC95D7C331500A915E3D28BA4298
How it was tested
The test suite is 809 checks. The measurements were checked against someone else's numbers: the case's aspect ratio matches the dimensions Apple publishes to within a tenth of a percent, and the key counts match exactly — 78 for ANSI, 79 for ISO, 109 for full-size.
Fn was measured on a real keyboard. A two-part test on a Magic Keyboard with Numeric Keypad, with a control built into the same run: twenty seconds of pressing only Fn, then twenty seconds of ordinary keys. Zero events against five. Without the second half the first would mean nothing — "pressed it and nothing came" looks exactly like "the probe wasn't listening", and that tripped the experiment up twice before it worked.
Still not tried on a real keyboard. Right Control and ⏏ were measured from photos and covered by tests, but no presses from an actual keyboard made it into this release. The Japanese and aluminium keyboards haven't been tried on hardware at all — the Japanese codes come from Windows' general mapping, and the hints say so. That's why this is an early build.
License
GNU General Public License v3 or later. All of the source is right here.
MagicKeys 0.2.0
The second release. Still an early build on the Dev channel: some of what's new was measured from photos rather than tried on a real keyboard, and below I say exactly which parts.
What's new
A picture of your keyboard. MagicKeys now shows the keyboard it thinks you have, so you can see for yourself that it got your model right. Keys with an outline are ones it has already seen, which means they reach Windows. The key you press lights up. You can look at any other Apple keyboard from the list too, but without outlines or highlights — it hasn't seen that one.
It's a drawing, not a photo: a photo of a Magic Keyboard is someone else's work, and this is free software. The measurements come from Apple's official US, UK and Japanese product shots — the width of every key, the gaps, the margins and the corner radius of the case.
Right Control. Every full-size Apple keyboard has one, yet the code said that key didn't exist. So the "⌘ works like Ctrl" scheme moved the left Control and left the right one alone: two identical-looking keys did different things, and there was nowhere to fix it. Now right Control has its own row in the settings, its own place in the ready-made schemes, and you can pick it as your Fn substitute. Out of the box it behaves exactly as before, so nothing changes unless you touch it.
No more offering keys you don't have. The default Fn substitute is right ⌥, but the compact Japanese keyboard doesn't have one — there's an fn/globe key in that spot, and Fn+arrows just silently didn't work. Now MagicKeys checks whether the key exists on your model and tells you plainly, both on the "Right ⌥" card and in the list of substitutes.
Hints that match your keyboard. "The leftmost key" for Control and "left of the space bar" for ⌘ aren't true on every keyboard: on the Japanese one, Caps Lock sits in the bottom-left corner and Control is in the row with "A". The hints now describe where the key actually is.
Small things. The ⏏ key is now recognised on the whole 2015–2017 generation, including the Magic Keyboard with Numeric Keypad — those models weren't getting its card before. The media codes for dictation and screen lock now have names, so Diagnostics shows a word instead of "code CF".
Installing
Download MagicKeys-0.2.0-x64.msi and run it. It installs into Program Files, so Windows will ask for admin rights. The only requirement is .NET Framework 4.x, which every Windows 11 machine already has.
The package is signed with my own certificate, so Windows will say the publisher is unknown. The thumbprint is 103850469089DEECC19D0DD6CE1D4DD3307601FA — the app checks for exactly this one when it updates itself and won't install a package signed by anyone else.
SHA-256: ECA2E5BF5B40A657D89FBA5442FD3D496CB2161628D6640BAD5B5C9408303A58
Worth knowing up front
Remapping applies to every keyboard, not just the Apple one. Windows' low-level keyboard hook doesn't say which device a key press came from — a limit of the system, not an oversight. "Only with Magic Keyboard" keeps MagicKeys quiet whenever no Apple keyboard is connected.
The fn key never reaches Windows — the keyboard handles it itself. A substitute key does its job instead, and now you can only pick from keys your model really has.
MagicKeys no longer makes promises about ⏏. It can catch the key through raw input, but whether yours actually gets through is something only the "Eject" card on the Keys page knows, because it asks the hook itself. The old text said one thing and then the other, both times without measuring anything.
How it was tested
The test suite is now 799 checks, seventeen of them new and about keys a keyboard may not have. Almost every one was first shown to fail without its fix.
The measurements were checked against someone else's numbers, not just mine. The case's aspect ratio matches the dimensions Apple publishes to within a tenth of a percent, and the key counts match exactly: 78 for ANSI, 79 for ISO, 109 for the full-size keyboard.
Not yet tried on a real keyboard. Right Control and ⏏ were measured from photos and covered by tests, but no presses from an actual full-size keyboard made it into this release. The Japanese and aluminium keyboards haven't been tried on hardware at all — MagicKeys has no Japanese-specific codes; they come from Windows' general mapping, and the hints say so. That's why this is an early build.
License
GNU General Public License v3 or later. All of the source is right here.
MagicKeys 0.1.0
The first release. It's an early build on the Dev channel — not everything has been tried on a real keyboard yet.
What it does
MagicKeys makes an Apple Magic Keyboard feel at home on Windows 11, without installing any drivers.
Mac shortcuts. ⌘C copies, ⌘← jumps to the start of the line, ⌥← skips a word, ⌘Q closes the window. There are sixty of them in three groups; each group has its own switch, and you can turn off any single shortcut. ⌘ with a key that isn't on the list just does what Control would.
The top row. F1–F12 give you volume, brightness and playback, the way they do on a Mac. For the real F-keys you use an Fn substitute: the Magic Keyboard never sends its own Fn key to Windows at all — the keyboard handles it internally. Fn+arrows give you Home, End, Page Up and Page Down.
Modifiers. Caps Lock as Control, ⌘ where Ctrl usually is, ⌥ and ⌘ swapped — pick a ready-made scheme or set each key yourself.
Apple layouts. Thirty-three languages. Only the keys that would type something different from what's printed on the Apple keycap get replaced, and dead keys work. Nothing gets installed into Windows.
Numeric keypad. Windows treats the ⌧ key as Num Lock and quietly switches the keypad off; MagicKeys gives the key its meaning back. The "=" key sends a code nothing understands, so MagicKeys types the "=" itself.
Brightness on external monitors over DDC/CI. Windows can't do this at all — its brightness keys only work on a laptop's built-in screen.
Battery level. Windows doesn't show it, so MagicKeys asks the keyboard directly with a HID report.
Plays nicely with the Boot Camp driver. If that driver has taken over the top row, MagicKeys steps aside and tells you so, rather than pretending your settings are doing something.
Installing
Download MagicKeys-0.1.0-x64.msi and run it. It installs into Program Files, so Windows will ask for admin rights. The only requirement is .NET Framework 4.x, which every Windows 11 machine already has.
The package is signed with my own certificate, so Windows will say the publisher is unknown. The thumbprint is 103850469089DEECC19D0DD6CE1D4DD3307601FA — the app checks for exactly this one when it updates itself and won't install a package signed by anyone else.
SHA-256: EAAB25DD8E533A831988BDDFD92D5EE753AB55F56DAA1322031DD684779F0008
Worth knowing up front
Remapping applies to every keyboard, not just the Apple one. Windows' low-level keyboard hook doesn't say which device a key press came from. That's a limit of the system, not an oversight. If it bothers you, turn on "Only with Magic Keyboard" and MagicKeys stays quiet whenever no Apple keyboard is connected.
The ⏏ key on a Magic Keyboard never reaches Windows — the keyboard handles it itself, and no driver changes that. There is a setting for it, aimed at the aluminium USB keyboards, but I had nothing to test that path on.
This is an early build. Key handling is covered by a test suite of 703 checks, but those test the app's decisions, not real hardware. If a key behaves oddly, turn on developer mode and open the Diagnostics page — it shows exactly what reached Windows.
How it was tested
Twenty-four rounds of picky review over the whole codebase. More than three hundred bugs fixed, and nearly all the serious ones were the same kind: a key ended up with two owners, or none. The press went one way and the release another, and the key stayed stuck down in Windows with nothing able to let it go.
The rule I worked by: a claim without a command behind it is just a claim. Every fix has a test, and every test was first shown to fail without the fix.
License
GNU General Public License v3 or later. All of the source is right here.