Added code to check for pressing of quit_char in the Carbon Event Queue