interrupts and shift registers for input