Fixed interrupt routine behaviour

Interrupt routines should now know if they're interrupting an input
instruction no matter what caused the interrupt.