# Is it possible to be able to hold the spacebar to make a player jump higher? Game Engine

I would like to be able to have a min jump height as 1 meter, and max jup height as 3 meter. When the spacebar is pressed and released quickly, the player jumps up one meter. When the spacebar is held down for a longer time, the player jumps up 3 meters instead of one.

Is this possible to make in the logic bricks or python for BGE?