added emscripten keyboard support