The Back button – Windows Phone requires handset manufacturers to implement a hardware back button for a consistent user experience. Because of this, your game should behave similar to the guidance below in order to pass certification.
- During gameplay – present a pause menu/dialog or navigate to the previous menu. For example, in a simple game, you may simply want to return to the main menu of your game when the back button is pressed.
- In the pause menu/dialog – pressing the back button should exit the menu/dialog and resume the game.
- In the main menu – if the back button is pressed during the main menu, then your game should exit.
Here’s a code sample of handling the back button
in Unity the back button can be handled by the Escape Key Mapping