I need help writing a program

hey i need to know how to make a program so wen my momentary switch incompletes the siren it turns on a siren. so like the switch it pushed and then when it gets unpushes it turns on a siren. i know how to tell thins to turn on. i just dont know how to do this thanks.

Look at File + Examples + Digital + Debounce for an example. Exchange the LED for the siren.