The fastest way: use Bluetooth pairing mode
Turn on your keyboard and hold the power button or pairing button for three to five seconds until you see a light flash or hear a tone. On your Mac, open System Settings, click Bluetooth in the sidebar, then wait for your keyboard to appear in the list of available devices. Click it once, and your Mac will ask you to type a four-digit code on the keyboard to confirm the connection. Type the code and press Enter. The keyboard is now paired and will reconnect automatically when you turn it on.
This process works the same way whether your keyboard is made by Apple, Logitech, Microsoft, or another manufacturer. The pairing code is a security step — it prevents someone else's keyboard from connecting to your Mac without your knowledge. Once paired, you do not need to enter the code again unless you unpair the keyboard or reset it to factory settings.
Key Takeaways
- Put your keyboard into pairing mode by holding its power or pairing button for three to five seconds, then select it from the Bluetooth list in System Settings.
- Your Mac will ask you to type a four-digit code on the keyboard itself to confirm the connection — this is a security step, not an error.
- Once paired, the keyboard reconnects automatically whenever it is turned on and in range, so you only pair once.
- If your keyboard does not appear in the Bluetooth list, make sure it is charged, in pairing mode, and within 30 feet of your Mac.
- Wired keyboards plug directly into a USB port and work when ready without any pairing steps.
Wired keyboards: plug and use
If your keyboard has a USB cable, plug it into any available USB port on your Mac or into a USB hub connected to your Mac. The keyboard will work when ready — there is no pairing step, no code to enter, and no waiting. Your Mac recognizes it as a standard input device and starts using it right away.
Wired keyboards are simpler than wireless ones because they do not need batteries, do not lose connection, and do not require Bluetooth to be turned on. The trade-off is that you have a cable running from your keyboard to your Mac. This works well if your keyboard sits close to your computer, but it limits how far away you can type.
What to do if your keyboard does not appear in Bluetooth
First, check that your keyboard is actually in pairing mode. The button you need to hold is often labeled with a Bluetooth symbol or the word "Pair". Hold it for at least three seconds — some keyboards need five or more. You should see a light blink or hear a sound. If nothing happens, your keyboard may be out of battery. Charge it for at least 15 minutes and try again.
Next, make sure Bluetooth is turned on in System Settings. Click the Bluetooth icon in the menu bar at the top of your screen, or go to System Settings and click Bluetooth in the sidebar. If Bluetooth is off, turn it on. Wait 10 seconds for your Mac to scan for devices, then check whether your keyboard appears in the list.
If your keyboard still does not show up, move it closer to your Mac — within 10 feet — and try again. Walls, metal objects, and other wireless devices can block the signal. If you have paired this keyboard to another device recently (a phone, tablet, or different computer), it may still be connected to that device. Turn off Bluetooth on the other device or unpair the keyboard from it, then try pairing with your Mac again.
Pairing a keyboard to a different Mac
A keyboard can be paired to multiple Macs, but it can only connect to one at a time. To switch your keyboard from one Mac to another, turn off Bluetooth on the first Mac or move far enough away that the keyboard loses the connection. Then put the keyboard back into pairing mode and pair it with the second Mac using the same steps as before.
If you want to keep the keyboard paired to both Macs so you can switch between them without re-pairing, some keyboards support this. Check your keyboard's manual to see if it has a button to switch between paired devices. Apple keyboards, for example, can be paired to up to 10 devices and switched between them using a key combination. Logitech and other brands have their own switching methods.
Fixing a keyboard that keeps disconnecting
If your keyboard connects but then drops the connection or becomes unresponsive, the most common cause is low battery. Check the battery level in System Settings: go to Bluetooth, find your keyboard in the list, and look for a battery percentage next to its name. If the battery is below 20 percent, charge the keyboard when ready.
If the battery is fine, unpair the keyboard and pair it again. Go to System Settings, click Bluetooth, find your keyboard, click the information icon next to it, and select "Remove". Then put the keyboard back into pairing mode and pair it fresh. This clears out any corrupted connection data.
If disconnections continue, check whether other wireless devices are interfering. Microwaves, Wi-Fi routers, and cordless phones all use the same 2.4 GHz frequency as Bluetooth. Move your keyboard and Mac away from these devices, or switch to a wired keyboard if the problem persists.
Using keyboard shortcuts after pairing
Once your keyboard is paired, all the standard Mac shortcuts work when ready. Command+C copies, Command+V pastes, Command+Z undoes, and so on. If you are using a non-Apple keyboard, the layout may be different — the Command key might be labeled as the Windows key or Super key, and you may need to remap it in System Settings.
To check or change key mappings, go to System Settings, click Keyboard in the sidebar, then click Keyboard Shortcuts. From there you can remap any key to do something different. This is useful if your keyboard has keys in unexpected places or if you want to customize how it works with your Mac.
Frequently Asked Questions
Do I need to pair my keyboard every time I turn on my Mac?
No. Once paired, your keyboard reconnects automatically when you turn it on and it is within range of your Mac. You only pair once, unless you unpair it or reset the keyboard to factory settings.
Can I use the same keyboard with my Mac and my iPhone?
Yes, if your keyboard supports pairing to multiple devices. Pair it to both your Mac and iPhone following the same steps. To switch between them, either use your keyboard's device-switching button (if it has one) or turn off Bluetooth on the device you are not using.
What if I forgot the pairing code my Mac showed me?
You cannot retrieve a code you did not write down. Unpair the keyboard from your Mac by going to System Settings, clicking Bluetooth, finding the keyboard, clicking the information icon, and selecting "Remove". Then pair it again — your Mac will show you a new code.
Why does my keyboard work but some keys do not respond?
Check the battery level first — low battery can cause missed keystrokes. If the battery is fine, restart your Mac. If specific keys still do not work, the keyboard may be damaged or have a stuck key. Try cleaning around the key with compressed air, or test the keyboard on another Mac to see if the problem follows it.
Can I use a Windows keyboard with my Mac?
Yes. Windows keyboards work with Macs, but the key layout is different — the Windows key acts as the Command key, and the Alt key acts as the Option key. You can remap these keys in System Settings under Keyboard Shortcuts if you want them to behave differently.