Capture key, mouse and touch events through a web page and use these events to control a device running a web socket server.