I am currently building a console application in visual studio. If the user is in the middle of adding a Customer, they may decide that they want to go back for whatever reason. If the user is Adding a customer, I want them to be able to press the "Esc" button at any point to go back to the main menu. I've already implemented it in my application where the user can select a number from a menu, but that's only when they reach a certain point within the program. I have done research and the solutions that I've seen online seem way more complicated than it needs to be.
Last edited: