To add upon the good advise in previous posting
If and only if this computer is an Apple Silicon Computer - there is no SMC ( System Management Controller ) on these computers
Apple Silicon M1 / M2 Computer
1 - Choose Apple menu > > Shut Down
1B - If using a Bluetooth Keyboard with Rechargeable Battery - Cable the Keyboard to computer for this unique purpose.
2- Do not attempt a Restart to access this feature. The computer Must be Shutdown and pause for about 10 seconds before moving forwards
3 - Press and hold the power button on your Mac until you see “Loading startup options.”
4 - Choose " Safe Mode "