The vkHardwareBack key would normally close a Delphi Android App.
Code in FormKeyUp in the main form captures this Back Key and handles it in PocessHardwareBack stepping back through the multilayer panes.
If the far right pane is active it asks the question 'Do you wish to Exit GPS' via a call to TDialogService.MessageDialog