You could also try adding a private varable.
In pseudo code:
+On pressing key (whatever)
-Set "player" private variable "jump" to 1
+On not pressing key (whatever)
+"player" private variable "jump" equals 1
-Do stuff
+"player" jump animation is finished
-Set "player" private variable "jump" to 0
~Sol