Behaves consistently for me, no matter the order of the events.
When player is "dead" you are setting his vector to upwards every tick, so he never gets around to falling back down.
The only way he falls is if you hit space twice to toggle the dead state again. In your video you were probably getting inconsistent results because your condition was "space is down", so that would toggle on and off every other tick. Basically if you didn't let go of the space key within one frame, the dead state would toggle off again. In the example file you uploaded it looks like you corrected this already.