character jumping

how to I make the computer controller character jump after the ball