'save a newly created core key set.
keySetName - string, the name of the new key set
keySet - dictionary containing the new key set'

def SaveNewKeySet(self, keySetName, keySet):

    if (not idleConf.userCfg['keys'].has_section(keySetName)):
        idleConf.userCfg['keys'].add_section(keySetName)
    for event in keySet.keys():
        value = keySet[event]
        idleConf.userCfg['keys'].SetOption(keySetName, event, value)
