Ported to SDL2, fixed keyboard issues