Factory resetting the Magic Keyboard (A1644) can be done by following these steps:
- If the keyboard is currently paired with any device, you'll need to unpair it first. On your Mac, go to System Preferences > Bluetooth. Find your Magic Keyboard in the list of devices, click on the "X" next to it, and select Remove.
- Turn off the Keyboard: Slide the switch on the back of the keyboard to the "off" position. The green light should turn off.
- Turn the keyboard back on by sliding the switch to the "on" position. Immediately, press and hold the Power button for about 5 seconds. The green light should start blinking, indicating that the keyboard is in pairing mode.
- Now, you can pair the keyboard with your device again. On your Mac, go to System Preferences > Bluetooth. Your Magic Keyboard should appear in the list of available devices. Click Pair.