Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
Select layout
Case "NewGame"
Msgbox("MainMenu","mainmenu")
MainMenu
Case "Options"
MainMenu
Case "GamePlay"
MainMenu
Case "LoadGame"
MainMenu
Case "Mainmenu"
Msgbox("Exitapp","exitapp")
ExitApplication
Case "HowtoPlay"
Options
Case Else
Msgbox("Need to create a backbutton for this","test")
End Select
End If
End Sub