Improved SDL2 key handling