You can use SetOnKey for receiving and handling all key events fired in the application.

app.SetOnKey( callback )

You may want to use it with DisableKeys - i.e. for defining a custom ENTER command for automatic control focussing.

You can find the complete list of keys and their codes on the Android Developer Page.

See Also: SimulateKey

Example - Demonstration click to expand contents 

Example - Surprise click to expand contents