update key resource