Change the power button action on Windows 11 [5 Tips]
Click Change what the power button does under Power Options in Windows 11. Now, select from the drop-down menu how you want your computer to behave when you press the power button to use battery and to plug in power at the same time.