I decided to try modifying the ButtonApp sample to use interrupts instead of polling the state of the pushbutton switch.
Gaah, never mind. I just found that the Event Handlers tutorial has been posted in the Projects section.
I'll take a look at that...