Variable jumping

I have a question about jumping. when I make my character jump, I change its Y velocity to 350. However, if the mouse is released before the end of the jump, I want the actor to come down sooner. Example: a tap on the mouse would trigger a small hop. Holding the mouse down would give you a long jump. Any ideas? Thanks!
Answers