I have the latest Magic Keyboard (the one with a switch, not a button) and a 2018 iMac.

Today after lunch, the keyboard Magically stopped doing anything. Here's what I checked:

  • Battery was not low, I charged it yesterday and checked the batter was full yesterday.
  • Keyboard worked fine before lunch.
  • No coffee spill.
  • No kids or other bad actors in the room.
  • Tried plugging in and unplugging the charging cable.
  • Tried changing the charging cable to a different port on the iMac.

Afraid to restart because then I can't type in the password.

3 Answers 3


To reset your keyboard:

Hold down the Shift and Option keys ('Alt' on some keyboards) and at the same time click on the Bluetooth icon in the menu bar. Once the menu is showing, release the keys. From the Bluetooth menu, choose Debug > Remove All Devices. Reboot your Mac, then setup your keyboard and/or mouse as normal.

  • 6
    This reset the bluethoot pairing on the computer. It does not reset the peripheral (keyboard and mouse)
    – gagarine
    Commented Jun 10, 2020 at 11:02

Please follow the below instructions to reconnect the bluetooth keyboard (one having the switch) if the keyboard stops working:

If your device has a built-in battery, you can use a USB-C to Lightning Cable or a Lightning to USB Cable to connect and pair it with your Mac. After you connect the device to your Mac with the cable, turn on the device and make sure the power switch is green. When you disconnect the cable, your device will be paired with your Mac.


The above answer is close. Shift + Option while clicking the bluetooth icon in the menubar brings up the debug options. You want to select Factory reset all connected Apple devices:

Screenshot of bluetooth menu debug options, with the correct 'Factory Reset all connected Apple Devices' option selected

  • 7
    No debug options anymore, it seems.
    – Mark Adler
    Commented Jun 22, 2022 at 19:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .