I run the Q1 wired on a coiled cable, so its USB-C always has 5 volts. Apple's board takes that 5 V through its own USB-C port, from a plug: a short USB-A to USB-C cable with the USB-A end cut off and its two power wires soldered to the Q1. Nothing gets soldered to Apple's board, its battery stays out, and the plug pulls out whenever the board needs a real cable to pair again. All of it is tested on the bench before anything goes inside the Q1.
Watch outWhy a plug and not wires on Apple's port: every builder I found powered the board through a plug in its own port. Lyssa built a Lightning plug for it, Khaos Tian's commenters run it on a plain USB power cable, and the USB-C box keeps the board's port as is. Bare 5 V on the port's pads might work too, since a USB-C device carries its own pull-down resistors, but nobody has shown it on this board. The plug answers the question for free: the spec puts a 56 kΩ pull-up in a USB-A to USB-C cable's plug, the same signal the keyboard gets from any USB-A charger through that cable.
Cheap cables sometimes use a 10 kΩ pull-up instead of 56 kΩ, which tells the keyboard it may draw more than a USB-A port allows. Buy a known brand.
The battery: a lithium cell kept on charge for years, inside a closed aluminum case and next to the Q1's own battery, is the part of this I'd most like to avoid. Builders run the board without it (Khaos Tian; another says macOS just shows it at 0%). If mine only runs with it, it stays flat, wrapped in Kapton, with nothing pressing on it, as far from the Q1's battery as the space allows.
The power switch isn't needed: without it the board is always on. The Q1's cable is the off switch.
If the first bench test passed and the second doesn't, the difference is the data wires: the charger had them, the cut cable doesn't. Join white and green together and insulate them, which is how a USB charger marks itself as one.
If the label said A2520 (Lightning): the same plan with Apple's USB-A to Lightning cable, bench tested on the charger first. The Lightning board runs on its port with no battery. If it won't wake on the cut cable, use Lyssa's Lightning breakout and resistor network instead: about 2 V on D+ and 2.7 to 2.8 V on D−, from the Q1's 5 V with no step-up board.
The Q1 runs off the same port: a short here can stop the whole keyboard, so check twice.
SafetyUnplug the Q1 every time you solder, and its battery too if it's on a plug. Measure before you connect. Never solder anything near either battery, and keep Apple's battery, while you still have it, on its own away from the bench.
Check before moving onWith the Q1 plugged in, the Mac lists the Magic Keyboard and Touch ID unlocks it, and unplugging the Q1 turns both off.