Prevent back, up and down from exiting widget?

*EDit*

Sorry, the ActivityTracker sample has everything I need it seems...