Fixed checking for state of control key