some more refactoring
New refactoring to create a command lookup mechanism
Now each key press is considered a command and looked up on a table
dispatcher
fixed some bugs
fixed another bug
fixing bugs...