Connecting Magic Keyboard to Mac, iPad and iPhone

My new 2019 iMac came with a Magic Keyboard. I prefer to use a Mechanical Keyboard, bot I use the Magic Keyboard on my iPad and occasionally on my iPhone. The Magic Keyboard is a great device, it has a nice feel to it. You can connect the Keyboard to your Mac with a cable, but most often you will be connecting to devices using Bluetooth. This article describes how to connect and disconnect the Magic Keyboard to your Mac, iPad and iPhone using Bluetooth.