abstracted the way the keys are stored to not have to explicitly check for keywords like "down" and "enter"
removed explicit assignment of self.get_keys to keys
added a blank line before command line command so file is easier to read