Add change key function.