Quit key handling fix.