The idea of the group is pretty good.
You can go also with a global variable that you would test before playing any sound.
For example
Press space
..Sub Evt: If Sound = 1 => Action play sound
The group might be a better solution, in the sense that all is gathered in a single place.
In the end, your choice concerning the implementation you prefer.