Add quit command
Move all key actions into console commands and mappings done by binding keys to commands in config