Set value by key event if element is editable