Fix TI port 0x01 - keyboard (reverse logic, add resetting etc)