How to handle Back/Menu buttone

Hello
Is there any way how I can handle an event when user presses Back (or Menu) button on his/her device? Right now my app simple closes, but I want to handle it correctly. Is there any way to make it?

views:1501 update:2011/10/8 8:54:25
corona forums © 2003-2011