On key press (whatever key you want) > shoot
Or if you want to control the number of shots you can create a variable that gets incremented each time you shoot and then reset it and only allow shooting when the variable is at 0. So on shoot, set the variable to 1. Then after a certain number of seconds, or some other event, set it back to 0 which allows you to shoot again.