Connecting an Apple Keyboard the First Time

An Apple wireless keyboard connects to your Mac or iPad through Bluetooth, a wireless technology built into most Apple devices. The first connection takes about two minutes and only needs to happen once — after that, your keyboard reconnects automatically when you turn it on.

Before you start, make sure your keyboard has fresh batteries installed. Apple keyboards use two AA batteries (or four AA batteries for the older full-size model). Open the battery compartment on the back of the keyboard, slide in the batteries with the positive end facing the spring, and close the compartment. Then turn on the keyboard using the power switch on the back — you should see a green light appear.

On your Mac, go to System Settings (or System Preferences on older versions), then click Bluetooth. Make sure Bluetooth is turned on. Your keyboard should appear in the list of available devices within a few seconds. Click on it, and your Mac will ask you to enter a pairing code that appears on your keyboard screen. Type the code using your regular keyboard or trackpad, then press Enter. Your Apple keyboard is now connected.

Key Takeaways

  • Apple wireless keyboards connect through Bluetooth and need fresh AA batteries to work.
  • On a Mac, turn on Bluetooth in System Settings, find your keyboard in the device list, and enter the pairing code shown on your screen.
  • On an iPad, go to Settings, tap Bluetooth, select your keyboard, and enter the pairing code the same way.
  • Once paired, your keyboard reconnects automatically each time you turn it on, so you only pair it once.
  • If your keyboard does not appear in the Bluetooth list, restart both the keyboard and your device, then try again.

Connecting an Apple Keyboard to an iPad

The process on an iPad is nearly identical to a Mac. First, make sure your keyboard is powered on and has fresh batteries. Then on your iPad, open Settings, tap Bluetooth, and toggle it on if it is not already. Your keyboard should appear in the list of available devices.

Tap your keyboard's name in the list. Your iPad will display a pairing code on the screen. Using your Apple keyboard, type the code exactly as shown, then press Enter. Once you see a "Connected" message next to your keyboard's name, the pairing is complete. Your iPad will remember this keyboard and connect to it automatically whenever both devices are nearby and turned on.

What to Do If Your Keyboard Does Not Appear

If your keyboard is not showing up in the Bluetooth list, the most common cause is that it is not actually powered on. Check the back of the keyboard for the power switch — it should be in the on position, and you should see a green light. If the light is off or red, the batteries may be dead. Replace them with fresh AA batteries and try again.

If the keyboard is on but still not appearing, restart both devices. Turn off your keyboard using the power switch, wait ten seconds, then turn it back on. At the same time, restart your Mac or iPad normally. Once both devices have restarted, open Bluetooth settings again and look for your keyboard in the list. It should appear within a few seconds.

If your keyboard still does not show up after restarting, it may have been paired with a different device. Apple keyboards can only connect to one device at a time. If you previously used this keyboard with another Mac or iPad, you may need to unpair it from that device first. On the device it is currently connected to, go to Bluetooth settings, find the keyboard in the list, and click the X or "Forget" button next to it. Then try pairing it with your current device.

Reconnecting After Your Keyboard Goes to Sleep

Apple keyboards automatically turn off after 30 minutes of inactivity to save battery life. When this happens, your Mac or iPad will show the keyboard as disconnected in Bluetooth settings. This is normal and not a problem — you do not need to repair it.

To use your keyboard again, simply press any key or click the trackpad (if your keyboard has one). The keyboard will wake up and reconnect to your device within a few seconds. You should see the Bluetooth icon in your menu bar change to show the keyboard is connected again. If it does not reconnect within 10 seconds, press a key again or restart the keyboard using the power switch.

Fixing Connection Drops and Lag

If your keyboard keeps disconnecting or feels slow to respond, the most likely cause is weak batteries. Even if the green light is still on, batteries that are running low can cause connection problems. Replace them with a fresh set of AA batteries and test again.

Another common cause is interference from other wireless devices. Bluetooth operates on the same frequency as Wi-Fi, microwaves, and some cordless phones. If your keyboard lags when you are near these devices, try moving your Mac or iPad closer to the keyboard, or move the interfering device farther away. You can also try turning off Wi-Fi temporarily to see if that improves the connection.

If lag or disconnections continue after replacing batteries and moving away from interference, restart your device completely. Sometimes the Bluetooth connection gets stuck, and a full restart clears it. Turn off your Mac or iPad, wait 30 seconds, then turn it back on. Once it has fully restarted, turn on your keyboard and see if the connection is stable.

Using Multiple Apple Keyboards on the Same Device

You can pair more than one Apple keyboard with a single Mac or iPad, though only one can be active at a time. This is useful if you have a keyboard at your desk and a portable one you carry with you. To add a second keyboard, go to Bluetooth settings on your device, make sure the new keyboard is powered on, and follow the same pairing steps as before.

Once both keyboards are paired, your device will connect to whichever one you turn on. If both keyboards are on at the same time, your device will use the one that was most recently activated. To switch between keyboards, simply turn off the one you are not using and make sure the other one is on.

Frequently Asked Questions

Can I use an Apple keyboard with a Windows computer?

Yes, Apple wireless keyboards work with Windows computers that have Bluetooth. The pairing process is the same — go to your Bluetooth settings, find the keyboard, and enter the pairing code. However, some keys may not work as expected, since they are designed for macOS. The Command key, for example, will function as the Windows key.

How long do the batteries last in an Apple keyboard?

Battery life depends on how much you use the keyboard, but most people get three to six months from a set of AA batteries. Your Mac or iPad will notify you when the battery is running low. Replace the batteries as soon as you see this warning to avoid the keyboard shutting down unexpectedly.

Why does my keyboard keep asking me to enter the pairing code?

This usually means the pairing did not complete successfully the first time. Make sure you typed the code correctly and pressed Enter. If it keeps happening, forget the keyboard from your Bluetooth settings and start the pairing process over. Also check that your keyboard has fresh batteries — low battery power can interrupt pairing.

Can I use a wired Apple keyboard instead of wireless?

Yes. Wired Apple keyboards connect directly to a USB port on your Mac or iPad (using an adapter for iPad). They do not need batteries and do not require pairing. Simply plug in the cable and start typing. Wired keyboards are less common now, but they work the same way as wireless ones once connected.

What if I lost the pairing code that appeared on my screen?

You cannot retrieve a pairing code that you missed. Instead, forget the keyboard from your Bluetooth settings and start the pairing process over. When you pair again, a new code will appear on your screen. This time, write it down or read it carefully before typing it in.