If you could post your code so we could look at it, it would probably be easier.
But there are a number of ways to do it. One is to use a script switch, where you have a variable that is true when jumping and therefor ignores any further jump strokes until the jump is over. Another is to ignore key strokes until the jump animation is over. Also you could use a timer.