May I ask how you manage to get into tablet mode unintentionally? I've never experienced this issue and it was my understanding that this is only possible to switch over by opening the action center and turning it on...both very deliberate actions that seem hard to do by accident. I'm not being sarcastic either, though. I work in a repair shop and one of the most common things people bring their devices in for is they accidentally put their device in tablet mode and have no idea what they're doing.