Just measure the time the character is not on the ground and if it is under 100-200 milliseconds, then still allow the jump :)