How to enable usage of Phone´s Button


I need to know how to enable the usage of the back button of cellphone to back for example the stage of a Widget of a non-game app.

I´m creating a non-game app, using widget, and would be in handy if the cellphone´s back button could be usefull.

I don´t know if a made myself clear.

Please help.

Check image following: