Sub Activity_KeyPress (KeyCode As Int) As Boolean 'Return True to consume the event
Private Answ As Int
Select KeyCode
Case KeyCodes.KEYCODE_BACK
Answ = Msgbox2("Do you really want to quit the program ?", "Quit program", "Yes", "", "No", Null)
If Answ = DialogResponse.NEGATIVE Then
Return True
End If
End Select
Return False
End Sub