Action happening until next button press

I want to make a character controller to jump when I press button and then release the button , but he should keep jumping until I press button again.

That’s probably not what you should do if I you want the same as that game. You’ll need to invert the gravity (or a constant force) and play an animation when the character isn’t grounded.

I think character controller uses gravity, may someone correct me if I’m wrong there.