Sub Activity_KeyPress (KeyCode As Int) As Boolean
If KeyCode = KeyCodes.KEYCODE_BACK Then
Select Msgbox2("Do you want exit app?","WARNING","Yes","","No",Null)
Case DialogResponse.POSITIVE
Activity.Finish
Case Else
Return True
End Select
End If
End Sub