Program now exits when Q is pressed instead of any key