key detection for the connection alert should be on key down