Like : every frame add 1 to the timer and put gravity to 0 if jump is held than if the timer reaches 10 reset it and wait until the jump button is pressed again.