Emacs multi select fixes

This fixes multi selection actions for various commands with the emacs key handler. 
This will conflict with https://github.com/ajaxorg/ace/pull/2226/files#diff-2b06aa082f4bba4deab378a35dce609fL198