Now that Ctrl-C doesn't exit ShowConsoleInput, make the program exit when the user hits ESC three times (3 up and 3 down for a total of 6 events).