How can I avoid accidentally pressing the standby and power buttons? Customize their assignment!Windows allows the user to freely assign the function behind the standby hotkey and the power button. Thus, these keys can also be disabled completely. It is also possible to set how Windows behaves when closing the display lid.The quickest way to find all these functions is to search for "lid" in the Start menu.Function remainsDisabling the power button in Windows does not affect its deeper firmware functions: Power Button turns laptop on or wakes it up from sleep mode. Pressing the power button for a longer time (about 5 seconds) turns the laptop hard off. These two functions work even if the button is set to "do nothing" in Windows.Is the lid closed or not?The "close lid" function is based on a magnetic sensor (so-called Hall sensor), which is located on the front edge of the laptop in most models. If you touch this sensor with a magnet, it triggers the corresponding action. It can happen that you accidentally trigger this sensor with an object on your wrist, e.g. an electronic fitness tracker or a smartwatch. So, if it happens that the laptop sometimes goes into standby mode supposedly "by itself", you should first set the action for "Close lid" to "Do nothing" and check if this makes any difference.