Test connection and KeyCode