Have you tried in power options from Control panel change sleep button to "do nothing" might help if dodgy keyboard button.
open