Update key event handling