press the up arrow key Click see inside on how to do gravity
thanks to @phillipshenry the formula can be applied to other games