You can connect a Magic Keyboard to your Mac through Bluetooth or using the Lightning port and charging cable.
You can connect a wireless mouse using Bluetooth on a Mac or PC. Here's how to do it in a few quick steps.