Attach most emscripten input event handlers to the WebGL canvas instead of whole page