Fixed command q (quit) issue on Mac OS X.