My keyboard is so lose it slides open in my pocket often. Is there a way to stop that action from powering on the phone? I have sent texts, opened applications and just basically caused havoc without knowing it was happening.

Thanks for any help.