press the space bar to jump when the ball is coming towards you p.s - i am still working on it
this is a work of a noob, i have improved now