Added directional key event to editor