emscripten input: Fixed text capturing vs. browser handling of some keys