Simulates a key event on an app object.

app.SimulateKey( obj, keyName, modifiers, pause )

You can find the complete list of key names on the Android Developer Page

Example - Infinite Monkey click to expand contents