Sub Activity_KeyPress (KeyCode As Int) As Boolean 'Return True to consume the event
'key interception, here if back or menu key pressed
If KeyCode = KeyCodes.KEYCODE_BACK Then
'close menu if opened
If Menu.IsVisible Then
Menu.CloseMenu
Return True
End If
End If
Return False
End Sub