update key script