Logging key presses - prefix hex values with 0x