update key version