The block doesn't constantly run the script when the mouse is down. It runs it once, right when you click. I would suggest replacing it with , as that checks for it constantly and works when you hold down the mouse.
Aight, see I used
but the thing is, I want it to stay in place, what i want is: when the user first presses space the color tray goes up to hide, the when the user presses space again, the tray goes back out of hiding, and it goes on from there. BUT, it doesn't do that, it just does the whole animation when I press space, which is not what I want.