Added option and control key detection for keysniffer