How do I forcibly unpair my Magic Keyboard from my Mac, so that I can pair it with my iPad? I have a Mac, and a Magic Keyboard paired with it.

I now want to use the keyboard with my iPad. To do so, I first need to unpair it from the Mac.

But what if the Mac isn't with me right now? Is there a way to force the Magic Keyboard to unpair itself from whatever device it's currently paired with, perhaps by pressing some key combination?

Some articles say to hold the power button down for three seconds, but the keyboard doesn't have a power button to hold down.

PS: The reverse direction is easy — getting a Magic Keyboard that is paired with an iPad to pair with a Mac. Just plug it in to the Mac, and it will pair. This question is about the opposite: the keyboard is already paired with my Mac. How do I force it to unpair itself from the Mac?
No - the pairing record on the Mac will remain until you remove it from that Mac. It's a sleeping dog situation when the Mac isn't nearby.

You can get a factory wipe of Apple's Bluetooth keyboards using this debug feature in macOS: - https://apple.stackexchange.com/a/15291/5472


Hold shift and option (only) when clicking on the Bluetooth icon in the menu bar of the Mac
Select Factory Reset for each device you wish to reset