add connect via websocket and handling of keyboard-input