catch sdl keyevents