You can define what the power button does according to your preference. For example, by pressing the power button, you can turn off the computer or put the computer to sleep or hibernation mode.
Right-click the battery status icon in the Windows notification area.
Click
.Change the settings as you prefer.