How do you tell a program to exit when you press a cetain button in C++