Update key handling.