I am looking for a way to wait for either an Escape or Return keypress and ignore all others. Escape should break out of the loop, and return should print, take a user input, then continue the loop.
Escape breaks the loop as expected. The problem I am having is that any key that isn't Escape will take me into the else if clause, but it should only do that for Return. I am wondering if going into the `else if` block has something to do with System("PAUSE") or hitting enter after taking a user input.
Why am I going into the else if block unexpectedly, and what would be a better way of pausing until one of these keys is pressed?