Always prefer a software-based restart over a force restart to avoid data loss and filesystem corruption.
This is helpful if your UI is glitchy but the system still responds to commands. Press to open the Run box. Type shutdown /r /t 0 and press Enter . /r tells it to restart. /t 0 tells it to do it immediately (0 seconds delay). 🍎 For Mac Users (MacBook) Method 1: The Direct Shortcut how to restart laptop with keyboard
If completely frozen with no keyboard response: Always prefer a software-based restart over a force
Use this only as a last resort, as unsaved work will be lost. Is the system completely frozen (no keys work)? Type shutdown /r /t 0 and press Enter
Hold the Touch ID button for about 1.5 seconds until the power options appear, then use the keyboard to select Restart. Method 2: The Apple Menu