Change the Function of Your Computer's Power Button
Windows gives you a few options as to what you want to heppen when you push the power button on your computer, including shutting your computer down.
- Right-click on the desktop, and click Properties
- Click on the Screen Saver tab, and then the Power button

- Click the Advanced button and take note of the options near the bottom

- Select the option you want and click on OK > OK

A day too late!
I just looked this up on Google yesterday, because I kept hitting th power button on my keyboard and shutting my computer down when reaching for my desk calendar. Now the computer asks me what to do, and I have the chance to cancel. Only downside to these ergonomic keyboards!