just 0-pad the key codes, don't try fancy things with hex and sprintf