One simple way is to check for detection is to detect based on event hit and “storing” a jump. When the player hits the ground it is activated back to true.