Format key IDs with leading 0s