Fix sdl get keyboard state not based on scan code bug

Related: #2283 "SDL problem: defined SDL_SCANCODE_???? is not correct on JavaScript platforms"