Basically most of person knows how to sound control by touch control but how we can do with keyboard?
I usually use variables such as Soundon = 0/1
So i do events, on key X pressed and soundon = 0 > set soundon = 1
ON key X pressed and soundon = 1 > set soundon = 0
Then i just do sub-events where i wanted the sounds, so lets say i spawn a bullet:
On bullet spawned >
Sub event > Is SoundON = 1 > Then play sound
So its only gonna play if the variable soundon = 1.