Hmm, documentation doesn't misses important part that
it also, keeps selection before the inserted newline.
https://github.com/ajaxorg/ace/blob/master/lib/ace/editor.js#L1284

it's almost the same but removes the need for naviageUp.