DisableKeys prevents the default behavior of several hard, soft or keyboard keys.

app.DisableKeys( keyList )

This way you can apply a custom action for them using SetOnKey.

You can find the complete list of keycodes on the Android Developer Page

Example - Surprise click to expand contents