def _translate_keyname(inp):
    """map key names in settings file to key names in HotKeys
    """
    convert = {'Escape': 'Esc', 'Delete': 'Del', 'Return': 'Enter',
               'Page_up': 'PgUp', 'Page_down': 'PgDn', 'NUMPAD_ENTER': 'NumEnter'}
    if inp in convert:
        out = convert[inp]
    else:
        out = inp
    return out