What do you want to achieve ?
As I can read your question it seems you want to detect if your Back Button is pressed and perform an action afterwards, right ?
If that isnt the case then please explain your problem more then the community may be able to help you out.