Fix data conversion in log of keyboard input.