Nope, thats not it.
I tried it with setting a variable to 0 and that worked just fine. So I'm guessing on Key Pressed can't make Invisible or destroy an object if that object is involved with a Variable. Why it wont go to another layout i have no idea.
But as soon as I did set variable to 0 it worked. Even On Key Pressed should still be able to work with Objects that are involved with Variables. Because the button press is overriding the Variable, modifying an object that's involved with a variable.
If a Variable has caused Objects to do something, then those can't be modified. Even if a Variable triggers Objects and another Variable, and that Varible is affecting other objects. Basically if a Variable has caused something, that Variable has to be changed. Theres no way, at least with Key Pressed, to make something Visible to become Invisible, move stuff, or destroy anything. If the Variable is still in effect then what it's doing will hold true.
The only thing that worked was having Key Pressed change the Variable to zero. Nothing else was working.