to do an emergency power off when you are hopelessly stuck:
Press and hold the power button until your Mac powers down. This could easily take ten seconds of pressing.
On models with TouchBar, the home position (where the fingerprint reader sits) acts as the power button for this purpose.