There are 2 external interrupts available. You can set up a service routine for
them with
ISR(INT0_vect)
{
.... your code here...
}
similar for INT1.
This is from the avr gcc documentation. Read the datasheet to see which pins correspond to the external interrupts.