commando: make TAB change to the currently selected scope

(integrated from master branch change 6233019 by Todd Whiteman <toddw@activestate.com>)