If your Mac becomes unresponsive, you can try force quitting the application causing the issue by pressing Command + Option + Esc. If that doesn't work, you can do a force restart by holding down the power button until the Mac turns off, then turning it back on.