So I am having problems with trying to implement a restart and exit features to happen in my levels binded to 2 different keys.
For the restart I want to say press “R” and then for my character to begin at the beginning of the level again.
For the exit I want to say press the “esc” key and for the game to return to the main menu.
Any suggestions on how I could do this please? Any help appreciated!