MacBook – Cannot login to macbook pro due to keyboard not working. Mouse can move, but not click

bughardwarekeyboardmacbook pro

I was just watching a youtube video on chrome with no other programs running, when my keyboard stopped working.

I could still move the mouse with the trackpad, but not click. I could use the upper row of keys (brightness, volume…) but not the other ones.

I left the computer alone for a few minutes, thinking it was lag, so it logged me out. Now I cannot log in because the keyboard does not work, and although I can move the cursor around on the login screen, I cannot click the switch user button.

In the past this issue has been resolved by resetting PRAM and restarting, but as the keyboard failure happens randomly, it is very frustrating to loose all my unsaved work every few weeks when this happens.

7 hours later, testing my keyboard every hour, I discovered the problem disappeared as it appeared.

Is there anyway to fix this without restarting?

How can I prevent this from happening again?

Best Answer

To regain keyboard access to your machine to troubleshoot the fault and restore correct functionality, here are (2) options to get back into your machine:

Option 1: Wireless Keyboard

Buy a Wireless (USB) Keyboard which uses a USB dongle that looks like a USB Flash Drive that you can just insert into a USB port (or USB-C adapter) and it should "just work". This should enable you to regain the required access to troubleshoot the fault to restore normal keyboard functionality. A wireless Keyboard I like is:

Note: Although I initially suggested a Bluetooth keyboard in addition to the Wireless one, since it's not possible to "click" to add the Bluetooth device to your system this is a non-starter on a system broken in such a way as you describe.

Although I'm in Amsterdam at the mo' and unable to test it on my Macbook, I Googled and the k400 is Mac compatible. I actually use this one with Raspberry Pi's, but might need it when my own Macbook's keyboard craps-out ;-)

Option 2: Remote Access Via SSH (requires another computer)

When I’ve had issues with things like this in the past, I’ve gotten in remotely via SSH. If you can get into the machine via SSH, you can troubleshoot the fault as well as get files you require until the issue Is resolved. Could use a cheap £32 Raspberry Pi to get a terminal session going into the Mac with the broken keyboard.

This possible solution implies of course you’ve enabled the SSH access in your system preferences as below:

Enable SSH Step 1: Show in System Prefs

Enable SSH Step 2: Show Sharing dialog

Given the problems with Apple's keyboards these past few years, I don't doubt others might be having similar issues.

Finally, I'd suggest storing docs in iCloud (DropBox is also really good, but with the codicile that it's not integrated into Apple's ecosphere like iCloud) so you can access your data if you keep having grief with your keyboard-