How to make a toggle button

Im trying to build a building system and I wanted the building sprite to spawn with a certain key, but I also want it to disappear when I press the same key, and then the same again after that. It may sound confusing, but I’m hoping someone can understand what I’m trying to say.

Oh okay, I’ll work on it @Kollamma.

Link a toggle switch to the spawn/fade in of the building sprite? On key down, trigger the switch and “next” on same switch. Next press of the same key would now do the opposite.

Lemme know if it works.