Modified auto completion logic check if control or other keys are be being pressed.