How to make an exit button in codea

I made a game but I couldn’t figure out how to make an exit button that takes me back to the menu. Any suggestion on how I could make one?

In the upper righ corner above New Discussion, do a forum search for menu.