fix swapped UP/DOWN in --event
support SDL2