fix SDL_GetKeyboardState not based on scanCode bug

Related: #2283