Fix SDL2 issue with keys getting stuck during vid_restart

When using menu "Apply video settings" or Alt-Enter, the keys will get stuck because up events are discarded during vid_restart.