Format the key ID