We're reducing the effect of gravity when jumping,
if jumping
I.velocity.y += float_acc
applying it normally when falling,
else if falling
I.velocity.y += acc
and if you are neither jumping nor falling and pressing the jump key, we're telling the game that you are now jumping.
else if keydown.z
jumping = true
I.velocity.y = -JUMP_POWER