How can I make it so that when I press the jump button, it doesn’t continue jumping even further into the air?
description of the problemI have a problem in my project in Java, my project is a video game, the problem is that when I press the jump key of my character, he continues to jump as I continue to hold down the key or repeatedly press this key to the point that it seems more flappy bird.