TC55: How to capture programmable button event in Activity?

I would like to move to another activity when the rightmost programmable button (next to the Menu button) is pressed. How do I register and unregister for the event?