If you have a Mac with T2 Security Chip, keep holding the keys the Apple logo disappears for the second time.
What are PRAM and NVRAM in a Mac and when should you reset them? Finally, replace the battery in the compartment and restart your Mac.Now press and hold the power button for five seconds.
How to reset the SMC on a MacBook with a removable battery (mostly pre-2015)