Define 'singleSelection' command, bind Esc to it by default

Issue #778