'Register a new shortcut key expansion.  If a shortcut key is reused
the old command will be deleted.'

def register_shortcut(self, shortcutChar, expansion):

    if (shortcutChar in self.shortcutKeys):
        del self.shortcutKeys[shortcutChar]
    self.shortcutKeys[shortcutChar] = expansion
