Show and hide an object with a key press.. how to do? Please help me

I’m new to gdevelop and i need some help to create a event where with a key press/touch… a particular object will show and if key is release then it will hide. Please experts reply soon… I m waiting.


Thanks jack but I need for mobile. So, can you help me with on screen button touch event?

its the same, but mouse/touch as condition:

works on mobile


thanks jack for helping me… it works.

thanks slash for helping me… it works.