How do I stop a MacBook powering up when I touch any key?
Any Key activates power on
Posted on Nov 5, 2026 5:18 PM
How do I stop a MacBook powering up when I touch any key?
Posted on Nov 5, 2026 5:18 PM
Nov 6, 2026 1:21 AM in response to Ellerslie
Apple Silicon MacBook Air – Powers On When Any Key Is Pressed
The behaviour you are experiencing may actually be normal for an Apple Silicon MacBook. Apple has designed these machines with automatic startup features, which means they can turn on under certain conditions, including opening the lid, connecting the power adapter or pressing a key on the built-in keyboard.
Here is what you need to know.
1. Why does this happen?
On Apple Silicon MacBooks, keyboard and trackpad activation can initiate startup, even when the computer has been completely shut down.
This is intentional behaviour designed by Apple and does not necessarily indicate a problem with your keyboard or MacBook.
Apple Support: https://support.apple.com/en-ca/120622
2. Can this behaviour be disabled?
Partly. Apple provides a Terminal command that allows you to prevent automatic startup when opening the lid or connecting the charger.
To disable both:
However, there is an important limitation: this command does not disable startup when a key on the built-in keyboard or the trackpad is pressed. Apple specifically confirms that this functionality remains available.
To restore the original settings, enter:
sudo nvram -d BootPreference
Apple Support: https://support.apple.com/en-ca/120622
3. When should you be concerned?
If your MacBook starts up without anything actually touching the keyboard or trackpad, it's worth investigating further.
I'd recommend:
Apple Diagnostics: https://support.apple.com/en-ca/102550
Mac sleep and wake: https://support.apple.com/en-ca/guide/mac-help/mchlp2995/mac
4. The bottom line
Unfortunately, Apple does not currently provide a standard macOS setting to prevent the built-in keyboard or trackpad from starting an Apple Silicon MacBook.
So, if your MacBook powers on when you press a key after a complete shutdown, this is generally consistent with Apple's intended design rather than evidence of a hardware fault.
Nov 5, 2026 9:20 PM in response to SergZak
"Good info: However, this only applies to preventing auto-power on via opening the lid or connecting to power. The MacBook will still continue to power itself on if any key is pressed."
-------
Thank you for that.
The only way to access the builtin keyboard on a laptop (not a desktop) is to have the lid closed. Don't have an external one to try, at this very moment, while the lid is shut.
Nov 5, 2026 9:10 PM in response to TheLittles
Good info 👍
However, this only applies to preventing auto-power on via opening the lid or connecting to power. The MacBook will still continue to power itself on if any key is pressed.
Nov 5, 2026 5:23 PM in response to Ellerslie
You don't.
That is the normal behavior of the current MacBooks.
Nov 5, 2026 5:58 PM in response to Ellerslie
To elaborate a bit more, even though you have "shut down" the MacBook via Apple menu > Shut down, the MacBook does NOT actually shut down...it remains in a "sleep" state that is instantly cancelled when a key is pressed, the TouchPad is clicked or the lid is opened. The MacBook is never actually off.
I personally do not care for this "feature" myself. When I turn something off (a light, the vacuum cleaner, my car), I have turned it off because I want it off.
You might want to voice your opinion on this by contacting Apple below:
Nov 5, 2026 9:02 PM in response to Ellerslie
"Any Key activates power on: How do I stop a MacBook powering up when I touch any key?"
-------
How do I Stop a MacBook from Powering On the Keys are Pressed:(
First...
Open Terminal, and Use This Command:
Make sure that your Mac meets the system requirements for this feature:
Then...
Use this Command in Terminal:
This command stops the Mac from powering on when lifting the lid --so, even with an external keyboard, it would not power on it a key were pressed.
sudo nvram BootPreference=%00
*Source: Prevent a Mac Laptop from Turning on when Opening its Lid or Connecting to Power - Apple Support
Originally posted at discussions.apple.com/thread/256389501