Refactored CommandKey handling into new CommandTree class.
Change split on space to a compiled pattern.