Notes are inserted at the cursor position by hitting <Enter> unless a text insert mode other than default chord symbols was previously selected
If the cursor is positioned after the last note the note will be appended (in fact is is inserted after the last note and the part terminator).
You can remove your insertion using <backspace>. Using the undo function immediately after an insert will (of course) remove the last inserted object also.