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 :
You do not have the required permissions to view the files attached to this post.