Corrected "append" functionality with enter keystroke