interrupts and shift registers for input

A port-expander such as the MCP23017 will assert an interrupt line when an input changes (if configured to do so). I don't think the 165 will do that as it is a somewhat simpler device.