Android device buttons

I’m creating test scripts on a Samsung Galaxy Tab 2.
How would I tell the script to press the power/sleep key on the tablet? I can only find Blackberry and Windows on the userguide.


Please try this:

TypeText PowerButton

This key mapping, along with other Android mappings, is documented under Device Control here: