Added more functionality to keyInputRegisters