How to Connect Wireless Keyboard to Mac When Locked – Easy Fix
Published: 21 Feb 2025
Did you know that many Mac users struggle with Mac wireless keyboard not connecting, especially after a restart or system update? If Bluetooth is off or your Mac doesn’t detect the keyboard, you might get locked out with no way to enter your password

So, how to connect wireless keyboard to Mac when locked? In this guide, we’ll walk you through five simple methods to fix the issue and regain access quickly.
Let’s get started and fix your keyboard connection!
How to Connect a Wireless Keyboard to a Mac When Bluetooth is Off?

If your Mac’s Bluetooth is off and your keyboard won’t connect, don’t worry! You can still log in and turn on Bluetooth on Mac without a keyboard using these simple methods.
- Use a Wired Keyboard – Plug in a USB or USB-C keyboard; it works instantly without Bluetooth.
- Connect an Apple Magic Keyboard via Cable – Use a Lightning to USB-C cable to connect it; macOS will recognize it immediately.
- Try Another Paired Wireless Keyboard – Some Apple keyboards stay connected even if Bluetooth is off.
- Use a Mouse to Enable Bluetooth – If you have a working mouse, navigate to System Settings > Bluetooth and turn it on.
- Restart in Safe Mode – Safe Mode can fix software glitches preventing Bluetooth from working.
After logging in, go to System Settings > Bluetooth and enable it to reconnect your wireless keyboard.
Now, let’s explore these methods in detail.
Method 1: Use a Wired Keyboard to Unlock Your Mac (Fastest Fix)
If your wireless keyboard won’t connect, the fastest and easiest fix is to use a wired keyboard. Since wired keyboards don’t rely on Bluetooth, they work instantly—even when your Mac is locked.
How to Connect a Wired Keyboard to Your Locked Mac
Option 1: Use a USB Keyboard (Most Common)
- Get a USB keyboard – Any wired USB keyboard (Apple or third-party) will work.
- Plug it into your Mac – Insert the USB cable into a free USB-A port or use a USB-C to USB-A adapter (for newer Macs).
- Wait for your Mac to recognize it – Most wired keyboards are detected automatically.
- Enter your password – Use the wired keyboard to log in.
- Turn on Bluetooth – Go to System Settings > Bluetooth and enable it.
- Pair your wireless keyboard – Put it in pairing mode and connect it.
Best if you have a standard USB keyboard available.
Option 2: Use a Lightning Cable (For Apple Magic Keyboards)
If you use an Apple Magic Keyboard, you can connect it using a Lightning to USB-C cable.
- Get a Lightning cable – Use the one that came with your Magic Keyboard or any MFi-certified Lightning to USB-C cable.
- Connect it to your Mac – Plug the Lightning end into your keyboard and the USB-C end into your Mac.
- Wait a few seconds – Your Mac will automatically recognize the Magic Keyboard.
- Enter your password – Use the keyboard to log in.
- Turn on Bluetooth – Go to System Settings > Bluetooth and enable it.
- Disconnect the cable – Once connected, your Magic Keyboard should now work wirelessly.
Best for Mac users with a Magic Keyboard and a Lightning cable.
Option 3: Use a USB-C Keyboard (For Newer Macs)
If you own a USB-C keyboard, you can connect it directly without needing an adapter.
- Get a USB-C keyboard – Some modern mechanical and external Apple keyboards use USB-C.
- Plug it into your Mac – Insert the USB-C cable into any available USB-C port.
- Follow the same steps – Log in, enable Bluetooth, and reconnect your wireless keyboard.
Best for Mac users who have a USB-C keyboard.
Tip: If you don’t have a wired keyboard, you can borrow one or buy a cheap USB keyboard as a backup. It’s always useful for troubleshooting!
Method 2: Use a Different Wireless Keyboard
Some Apple wireless keyboards stay connected to a Mac, even when Bluetooth is off. If you have another Apple keyboard, you might be able to use it to log in and fix the issue.
How to Use a Different Wireless Keyboard to Log In
- Find another Apple wireless keyboard – Borrow one from another Mac or use an extra keyboard you have at home.
- Turn it on – Make sure the keyboard has enough charge and is powered on.
- Check if it connects automatically – Some Apple keyboards remain paired to your Mac even after a restart.
- Try typing your password – If the keyboard works, enter your password and log in.
- Enable Bluetooth – Once logged in, go to System Settings > Bluetooth and turn it on.
- Reconnect your original keyboard – Put it in pairing mode and re-pair it with your Mac.
Best for users who have multiple Apple keyboards at home.
Tip: If your second keyboard doesn’t connect, try resetting its pairing by turning it off and back on.
Method 3: Restart Mac in Safe Mode to Connect Wireless Keyboard
If your Mac isn’t detecting Bluetooth devices, restarting in Safe Mode can help. Safe Mode clears system caches and fixes minor software glitches that might be blocking your wireless keyboard.
How to Restart Your Mac in Safe Mode
- Turn off your Mac – Press and hold the Power button until your Mac shuts down completely.
- Enter Safe Mode:
- For Intel Macs: Press and hold the Shift key, then press the Power button to turn it on. Keep holding Shift until you see the login screen.
- For Apple Silicon (M1, M2, M3) Macs: Press and hold the Power button until you see “Loading startup options.” Select your disk, hold Shift, and click Continue in Safe Mode.
- Log in to your Mac – Enter your password to access the system.
- Enable Bluetooth – Go to System Settings > Bluetooth and turn it on.
- Reconnect your wireless keyboard – Put your keyboard in pairing mode and connect it.
- Restart your Mac normally – Once your keyboard is working, restart your Mac to exit Safe Mode.
Best for users facing Bluetooth issues after a restart.
Tip: If Safe Mode doesn’t work, try resetting the Bluetooth module using Terminal.
Method 4: Use a Mouse to Enable Bluetooth
If your wireless keyboard won’t connect, but you have a working Bluetooth mouse, you can use it to turn on Bluetooth and reconnect your keyboard. This is one of the easiest ways to fix the issue without needing a wired keyboard.
How to Enable Bluetooth Using a Bluetooth Mouse
- Check if your Bluetooth mouse is working – Move the cursor to see if the mouse is already connected.
- Open the Control Center – Click the Control Center icon in the menu bar (top right corner of the screen).
- Turn on Bluetooth – Click Bluetooth and switch it ON.
- Put your keyboard in pairing mode – Turn it off and back on, then press the pairing button (if it has one).
- Connect your keyboard – Select your keyboard from the available devices and pair it with your Mac.
Best if you have a working Bluetooth mouse connected.
Alternative Option: Use a Wired Mouse
If you don’t have a Bluetooth mouse, you can use a wired mouse to enable Bluetooth manually:
- Plug in a USB mouse – Connect it to your Mac using a USB port or adapter.
- Go to System Settings – Click the Apple menu and select System Settings.
- Select Bluetooth – Find Bluetooth settings in the left panel.
- Turn it ON – Click the toggle switch to enable Bluetooth.
- Reconnect your wireless keyboard – Put it in pairing mode and connect it.
Tip: If you don’t have a wired or Bluetooth mouse, you can use Voice Control to turn on Bluetooth.
Method 5: Reset Bluetooth Using Terminal (For Advanced Users)
If your wireless keyboard still won’t connect, resetting the Bluetooth module can help. This method forces macOS to restart Bluetooth services, which can fix pairing issues. You’ll need any working keyboard (wired or wireless) to enter the command.
How to Reset Bluetooth on Mac Using Terminal
- Connect a working keyboard – Use a wired keyboard or any wireless keyboard that’s already paired.
- Open Terminal – Go to Applications > Utilities > Terminal or use Spotlight Search (press
Command (⌘) + Space
, type “Terminal,” and hit Enter). - Enter the reset command – Type the following command and press Enter:
bash
sudo pkill bluetoothd
- Enter your password – If prompted, type your Mac’s administrator password and press Enter. (You won’t see the characters as you type.)
- Restart your Mac – Click the Apple menu > Restart or type the following command in Terminal and press Enter:
bash
sudo reboot
- Turn on Bluetooth – After restarting, go to System Settings > Bluetooth and ensure it’s ON.
- Put your keyboard in pairing mode – Turn it off and back on, then follow the on-screen instructions to reconnect it.
Best for users comfortable using Terminal commands.
Tip: If this method doesn’t work, you can try resetting the Bluetooth module completely using a different Terminal command.
Preventive Tips: Avoid This Issue in the Future
To prevent your wireless keyboard from disconnecting when your Mac is locked, follow these simple tips. These steps ensure you won’t get locked out again due to Bluetooth or pairing issues.
How to Prevent Wireless Keyboard Connection Issues
Keep Bluetooth enabled at login
- Go to System Settings > Bluetooth and make sure Bluetooth is always ON.
- This ensures your Mac remembers your keyboard even after a restart.
Have a backup keyboard
- A simple USB keyboard can save you if your wireless keyboard fails.
- Keep a wired keyboard or extra wireless keyboard nearby for emergencies.
Enable Automatic Login (if secure)
- If you’re the only person using your Mac, you can enable automatic login.
- Go to System Settings > Users & Groups > Login Options and turn on Automatic Login.
- This prevents the need to enter a password manually.
Regularly check battery levels
- Low battery can cause random disconnections.
- Check your keyboard’s battery in System Settings > Bluetooth.
- If the battery is low, charge or replace it before it dies.
Keep macOS updated
- Some Bluetooth bugs happen due to outdated software.
- Go to System Settings > Software Update and install the latest macOS version.
Tip: You can also set your Magic Keyboard to reconnect faster by resetting its Bluetooth connection once every few months.
Conclusion
So guys, in this article, we’ve covered how to connect wireless keyboard to Mac when locked in detail. I personally recommend keeping a spare wired keyboard or enabling Bluetooth at login to prevent this issue in the future. Trust me, it saves a lot of hassle!
If you found this guide helpful, share it with others who might face the same problem. And don’t forget to bookmark this page for quick access!
FAQs: Common Questions About Connecting a Wireless Keyboard to a Locked Mac
Try resetting the System Management Controller (SMC):
- For Intel-based MacBooks → Turn off your Mac, hold Shift + Control + Option + Power for 10 seconds, then turn it back on.
- For M1/M2 Macs → Simply restart your Mac.
This often fixes hardware-related Bluetooth issues.
Yes! You can use the Apple Remote Keyboard app or Universal Control (if paired with an iPad). Just make sure both devices are on the same Wi-Fi network and logged into the same Apple ID.
Mostly on older Macs or after system updates that reset Bluetooth settings. Newer Macs have better Bluetooth handling and usually reconnect faster. However, low battery or interference can still cause issues on any model.
Yes, but setup might take a little longer. Some third-party keyboards need a passcode to pair, which can be tricky if your Mac is locked. Using a USB keyboard first can help you access Bluetooth settings to complete the setup.
This can happen due to low battery, Bluetooth interference, or outdated macOS software. Try changing the batteries, resetting Bluetooth, or removing other wireless devices that may cause signal interference. Keeping macOS updated can also help fix Bluetooth bugs.
Not exactly. The Magic Keyboard can remember multiple devices, but it only connects to one at a time. To switch between devices, you’ll need to disconnect from the current device and pair it again manually.
For Apple’s Magic Keyboard, turn it off and back on—the green light should flash, indicating pairing mode. For other keyboards, look for a Bluetooth button (usually on the back or bottom). Hold it down for a few seconds until the indicator light starts blinking.
Yes, it might. Cheap or unshielded USB hubs can cause signal interference, making Bluetooth devices lag or disconnect. If you’re using a hub, try plugging your keyboard directly into your Mac for better performance.

- Be Respectful
- Stay Relevant
- Stay Positive
- True Feedback
- Encourage Discussion
- Avoid Spamming
- No Fake News
- Don't Copy-Paste
- No Personal Attacks

- Be Respectful
- Stay Relevant
- Stay Positive
- True Feedback
- Encourage Discussion
- Avoid Spamming
- No Fake News
- Don't Copy-Paste
- No Personal Attacks