Set cursor position to mouse click on enter