REFACTORS: Classes moved to separate files.

- Removed unused imports.
- Renaming InputKey to KeyComponentCommand.
- Pulled out tab name creation and look up into a module.