Use an Apple wireless keyboard, mouse, or trackpad with Mac
Your Apple wireless keyboard, mouse, and trackpad use Bluetooth to communicate with your Mac.
Make sure the device you’re setting up has charged batteries and is turned on.
On your Mac, choose Apple menu > System Settings, then click Bluetooth in the sidebar. (You may need to scroll down.)
Hold the pointer over the keyboard, mouse, or trackpad in the list, then click Connect.
Note: If the device has a built-in battery, it automatically connects with your Mac when you turn it on if it was previously paired with your Mac.
Keep these things in mind when using an Apple Bluetooth device:
If you’re using a wireless keyboard or trackpad without a built-in battery, press and hold the power button until the green light flashes to allow the device to connect and pair.
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.
If your Bluetooth device uses AA batteries, you receive a warning when the batteries are running low; it’s a good idea to have a spare set of batteries available.
If you won’t be using your Bluetooth device for an extended period of time, turn it off to maximize battery life. To turn it off, use the on/off switch.