Macbook Pro semi-frozen

force quithangkeyboardmacbook protrackpad

My mac is in a weird state without particular reason.
It is awake, but mouse clicks don't work, so I can't open any menus or apps.
If I shut the lid, it locks after a while, but not immediately. When it gets to the locked state, it allows me to log into my account, by typing password, but it won't let me switch user or get to the screen, where I can restart it.

Keyboard is even more weird. It react to all feature buttons (brightness, sound, keyboard brightness), except power button and "app buttons" (f3-f4). It doesn't react to holding power button for 10+ seconds, nor cmd+option+power button shortcut.

I'm able to call "force quit apps" menu via cmd+alt+esc and close all apps and restart finder, but it doesn't help.

Any ideas what should I do?

I can't detach battery, since it 2015 retina model and I don't have correct screwdriver on me.

UPDATE: External mouse and keyboard react the same way

Best Answer

After a while, I've noticed that all shortcuts work in Finder. Here are my steps, how I fixed the problem:

  1. Try to launch finder, by killing rest of the apps via "force quit apps" menu (Command+Alt+Esc)
  2. Go to utilities folder (Shift+Command+U)
  3. Use arrows to select Terminal
  4. Open terminal (Command+Down Arrow)
  5. Issue command sudo shutdhown -r now. I decided to use -r flag to reboot my mac, in case power button is dead and I won't be able to load it.

Now everything works fine. It was just a software bug.