Refactoring : used OrderedDict to map keybindings AND menu opts.
Defined GUI.__enter__ and __exit__ for use with a context manager