docstr: Translate from keycap symbol to the Tkinter keysym
docstr_tok: ["Translate","from","keycap","symbol","to","the","Tkinter","keysym"]
code: def TranslateKey(self, key, modifiers):
      "Translate from keycap symbol to the Tkinter keysym"
      translateDict = {
          "Space": "space",
          "~": "asciitilde",
          "!": "exclam",
          "@": "at",
          "#": "numbersign",
          "%": "percent",
          "^": "asciicircum",
          "&": "ampersand",
          "*": "asterisk",
          "(": "parenleft",
          ")": "parenright",
          "_": "underscore",
          "-": "minus",
          "+": "plus",
          "=": "equal",
          "{": "braceleft",
          "}": "braceright",
          "[": "bracketleft",
          "]": "bracketright",
          "|": "bar",
          ";": "semicolon",
          ":": "colon",
          ",": "comma",
          ".": "period",
          "<": "less",
          ">": "greater",
          "/": "slash",
          "?": "question",
          "Page Up": "Prior",
          "Page Down": "Next",
          "Left Arrow": "Left",
          "Right Arrow": "Right",
          "Up Arrow": "Up",
          "Down Arrow": "Down",
          "Tab": "Tab",
      }
      if key in translateDict.keys():
          key = translateDict[key]
      if "Shift" in modifiers and key in string.ascii_lowercase:
          key = key.upper()
      key = "Key-" + key
      return key
  
file_path: catboost/contrib/tools/python/src/Lib/idlelib/keybindingDialog.py
imports: from Tkinter import *
  import tkMessageBox
  import string
  import sys
label_desc: Use image node_id 10 for calling the GetKeysDialog obj's underlying member method code with example usage: obj.TranslateKey(key, modifiers) and returns: key