Please see:
http://en.wikipedia.org/wiki/WebRTC[
^],
http://www.w3.org/TR/webrtc[
^],
http://www.webrtc.org[
^].
Here is the problem: Web technologies are designed the way a Web page cannot access local system and its hardware, for safety reasons. But how mouse and keyboard are accessed? They are standard input devices. A browser code itself can use any local system resources; we have to trust it, but it is important that no one can program a Web page doing something without the user's consent. With time, new input devices are put to wide use but are not embraced by W3 standards. Adding them to standard is ongoing activity; it includes biometric devices, accelerometers, compasses and gyroscopes, microphones and cameras. If such devices are not supported by a browser is a standard way, some other technology can be used, and some would be prohibitively unsafe, such as the use of ActiveX in some browsers.
WebCRT working draft is very new (2015) and is partially implemented in a number of major browsers. Check it out:
http://en.wikipedia.org/wiki/WebRTC[
^].
—SA