I had it like that before but if you pressed space quick for jumping the game was freezing a short time. I didn't found a good solution in time.