How to determine the connection status of the imKey device?