Using interrupts to detect pressed pushbuttons