code: def _parseKeyNames(lib):
      
      _keyNames = {}
      for attr in dir(lib): # from the modules variables
          if attr[:6] == 'TCODK_': # get the K_* constants
              _keyNames[getattr(lib, attr)] = attr[6:] # and make CODE=NAME pairs
      return _keyNames
docs: returns a dictionary mapping of human readable key names to their keycodes
      this parses constants with the names of K_* and makes code=name pairs
      this is for KeyEvent.key variable and that enables things like:
      if (event.key == 'PAGEUP'):