The fastest way depends on whether you want wireless or wired
A wireless keyboard connects through Bluetooth, which is built into every MacBook. A wired keyboard plugs into a USB port (or USB-C, depending on your model). Wireless is simpler once it pairs — you just turn it on and it works. Wired keyboards work immediately with no pairing step, but they take up a port and limit where you can sit. Most people choose wireless for the flexibility, but wired is more reliable if you use your keyboard in the same spot every day.
The pairing process takes about two minutes and you only do it once. After that, your MacBook remembers the keyboard and connects automatically when it powers on.
Key Takeaways
- Wireless keyboards pair through Bluetooth in System Settings under Bluetooth, and you only pair once — after that they reconnect automatically.
- Wired keyboards plug into a USB or USB-C port and work immediately without any pairing or setup.
- If your MacBook does not see your wireless keyboard during pairing, restart both devices and make sure the keyboard is in pairing mode (usually a button on the back).
- You can use multiple keyboards with one MacBook by pairing them separately, though only one can type at a time.
How to pair a wireless keyboard through Bluetooth
Open System Settings on your MacBook. Click Bluetooth in the sidebar (on newer macOS versions, it may be under General first). Make sure Bluetooth is turned on — you will see a toggle at the top right.
Put your wireless keyboard into pairing mode. Most keyboards have a small button on the back or bottom labeled "Pair" or with a Bluetooth symbol. Hold it for three to five seconds until a light on the keyboard blinks or changes color. Your keyboard will now appear in the list under "Available devices" in System Settings.
Click your keyboard's name in the list. Your MacBook will ask you to type a four-digit code on the keyboard to confirm the connection. Type the code and press Enter. The keyboard will move from "Available devices" to "Connected" and you are done. From now on, when you turn the keyboard on, it will connect automatically.
Connecting a wired keyboard with USB or USB-C
Plug the keyboard cable into an available USB port on your MacBook (or a USB-C port if your model uses USB-C). Most MacBooks recognize the keyboard instantly — you will see a brief notification and can start typing right away. No pairing, no settings, no waiting.
If the keyboard does not work immediately, restart your MacBook. Occasionally a keyboard needs the system to recognize it on startup. If it still does not work after restart, try a different USB port — one port may be faulty while others work fine.
What to do if your wireless keyboard will not pair
First, make sure Bluetooth is on in System Settings. Then restart both your MacBook and your keyboard — turn the keyboard off, wait ten seconds, and turn it back on. Put the keyboard back into pairing mode using the button on the back.
If your MacBook still does not see the keyboard, check the battery. A keyboard with a dead or dying battery will not appear in the Bluetooth list. Replace the batteries and try pairing again. If the keyboard has a rechargeable battery, plug it in for at least 30 minutes before trying again.
If pairing still fails, forget the keyboard from your MacBook and try again. In System Settings under Bluetooth, find your keyboard in the Connected or Available list, click the information icon next to it, and select "Remove". Then put the keyboard back into pairing mode and pair it fresh.
Using multiple keyboards with one MacBook
You can pair as many wireless keyboards as you want to a single MacBook. Each one pairs separately through the same Bluetooth menu. Your MacBook will remember all of them and reconnect to whichever one you turn on.
Only one keyboard can send input at a time — if you have two keyboards powered on and connected, whichever one you type on will work, and the other will be ignored. This is useful if you switch between a portable keyboard for travel and a full-size keyboard for your desk, or if you have a backup keyboard in case one fails.
Checking which keyboard is currently connected
Open System Settings and go to Bluetooth. You will see a list of all your paired keyboards. The one with a checkmark or labeled "Connected" is the one your MacBook is currently listening to. If you have multiple keyboards powered on, the one you last typed on is the active one.
If you want to switch to a different keyboard without turning off the current one, just start typing on the other keyboard. Your MacBook will switch to it automatically.
Troubleshooting a keyboard that was working but stopped
For wireless keyboards: turn the keyboard off and back on. If it does not reconnect within a few seconds, check the battery and replace it if needed. Then turn the keyboard on again.
For wired keyboards: unplug it and plug it back in. If it still does not work, try a different USB port. If no port works, restart your MacBook — occasionally the system loses track of a wired device and needs to rescan on startup.
If a keyboard worked for months and suddenly stopped, and restarting does not fix it, the keyboard itself may be failing. Wireless keyboards can develop battery contacts that corrode; wired keyboards can develop loose internal connections. In either case, the keyboard is likely at the end of its life.
Frequently Asked Questions
Can I use a Windows keyboard with a MacBook?
Yes. Windows and Mac keyboards are physically compatible and will work through either Bluetooth or USB. The key labels are different — Windows has Alt and Windows keys where Mac has Option and Command — but the keyboard will function. You may need to remap keys in System Settings under Keyboard if you want the keys to behave exactly like a Mac keyboard.
Why does my keyboard keep disconnecting?
Wireless keyboards disconnect when the battery is low, when Bluetooth is turned off, or when something is blocking the signal between the keyboard and MacBook. Check the battery first. If the battery is good, move the keyboard closer to your MacBook and away from other wireless devices like routers or phones. If disconnections continue, the keyboard's Bluetooth chip may be failing.
Do I need to charge a wireless keyboard?
Most wireless keyboards use replaceable AA or AAA batteries that last several months. Some newer keyboards have rechargeable batteries built in — these come with a USB cable and need charging every few weeks. Check your keyboard's manual to see which type yours is.
What if my MacBook has no USB ports?
Newer MacBooks with only USB-C ports can use a USB-C to USB adapter (sold separately) to connect a wired keyboard with a standard USB plug. Wireless keyboards work the same way regardless of port type, since they connect through Bluetooth.
Can I use my keyboard with multiple devices at once?
Most wireless keyboards can pair with only one device at a time. To switch to a different device, you usually need to unpair from the first device and pair with the second. Some premium keyboards support multi-device pairing and can switch between devices with a button press, but this is not standard.