Fixed enter and adding at caret