However, you can actually change the function of the power button.
To change the function of the power button.
- Click on Start > Run. Type Powercfg.cpl. Click OK.
- Click on the Advance tab.
- In the Power buttons region, under "When I press the power button on my computer" option, click the drop down menu to choose the available functions. Usually, you will see Do nothing, Ask me what to do, Standby, Hibernate and Shut down.