Inputhandler works with emscripten

Inputhandler now uses GLFW keyboard callback API.
Some code has been merged with duetto and the whole class has
been restructured