Oh I did attach an image, maybe it didn't load for you?
Either way, your event is not quite right. On space pressed should be the only top condition, with no actions. Then as sub-conditions you do the "is visible" and "else"
There should be an image in this post for how it's supposed to look like.