Sub Activity_KeyPress (KeyCode As Int) As ResumableSub
If KeyCode = KeyCodes.KEYCODE_BACK Then
Msgbox2Async("Do you need to click in the button!","Interruped", "Continue", "Cancel", "", Null, True)
Wait For Msgbox_Result (Result As Int)
If Result <> DialogResponse.POSITIVE Then
Return True
End If
Activity.Finish
Return True
End If
Return False
End Sub