If you have to use a wait action to make it work, then your events are not set the way they should.
Construct read events once/tick and from top to bottom.
Basically, it executes your two conditions "on space released" at the same tick and this is why it doesn't work. Your two "on space released" conditions are both verified and executed.
So I suggest you to consider making something like this :
[attachment=0:2f3fe7ub][/attachment:2f3fe7ub]