oh i didnt see that. how about you set it like this:

...
if(key_space && a == 2)
...



Ubi bene, ibi Patria.