Updates key-event handling