Update Key Code