Set power button behavior
By default, pressing the power button puts the computer to sleep mode. However, you can change the power button behavior in Windows Control Panel.
Right-click the battery status icon in the Windows notification area.
Select
Power Options
>
Choose what the power buttons do
.
Parent topic:
Manage power