Fix indent for key event processing logic