None of this code really works together,
Linguist has already pointed to the exact problem in the code but, from reading your code you are going at the whole concept wrong.
You are trying to capture the key press for Esc, while getting the input from a user on a numeric value, this doesn't really work quite like that.
The GetAsyncKeyState will get the virtual key's inputted value, that is to say if it is down or not but firstly, that is a bool, not an integer, you cant really put bools into switch statements.
Also you wont be able to capture the key state during the input as the cin function will wait until the user presses enter before continuing, which means even if they did press escape, nothing would happen.
Here is an example how i personally would have written this code
enum class eActions
std::cout << "Advanced calculator by pdxzombiekiller123." << std::endl;
std::cout << "Press 1 to do stuff, or press 0 to quit. (press enter to confirm your choice)" << std::endl;
int choose = 0;
cin >> choose;
std::cout << "test" << std::endl;
Hope this will help you in your task
<!--?prettify lang=html linenums=true?-->