I'm trying to Interrupt with a switch. Can I do this?

http://arduino.cc/en/Reference/AttachInterrupt