Simple Interrupt

You should "configure" the pin a little bit... It will also help to connect the button to ground.. Read a little bit about pull-up and pull-down...