Do not attempt to send keyboard shortcuts to server if we are not actually connected. Closes #2.