Just finger trouble
I was doing some development on a test server and had not saved my work. An associated program would only run if "Turbo Mode" was turned off (this dropped the CPU clock rate down to match an original 8088 chip). Some tower PCs had the turbo button next to their push-button power switch. I pressed the turbo button to start the other program, but hit the power button by mistake, immediately experiencing the well known "How stupid am I?" feeling. I managed to keep the button in, so the power stayed on. Unfortunately, I had used my dominant right hand when I had bent down to touch the switch. Unable to see they keyboard, I managed to find the keys I needed to save my work, and then type in the shutdown command. Then I drank coffee and taped a cardboard flap over the power switch to stop the stupid person doing it again.
Edit: That is one reason why I really liked the large red power switch at the back of original IBM PCs, it was almost impossible to turn it off by mistake.