I'm confused. The power button doesn't work very well, I take it? Are you looking for a way to ensure the phone goes into lock mode or to ensure you can get it out of lock mode? You can get it out of lock mode very easily by just sliding the keyboard about a quarter of the way out, and then back in if you don't need it.