def _keyDown(key):
if key not in keyboardMapping or keyboardMapping[key] is None:<EOL><INDENT>return<EOL><DEDENT>if type(key) == int:<EOL><INDENT>fake_input(_display, X.KeyPress, key)<EOL>_display.sync()<EOL>return<EOL><DEDENT>needsShift = pyautogui.isShiftCharacter(key)<EOL>if needsShift:<EOL><INDENT>fake_input(_display, X.KeyPress, keyboardMapping['<STR_LIT>'])<EOL><DEDENT>fake_input(_display, X.KeyPress, keyboardMapping[key])<EOL>if needsShift:<EOL><INDENT>fake_input(_display, X.KeyRelease, keyboardMapping['<STR_LIT>'])<EOL><DEDENT>_display.sync()<EOL>
Performs a keyboard key press without the release. This will put that
    key in a held down state.

    NOTE: For some reason, this does not seem to cause key repeats like would
    happen if a keyboard key was held down on a text field.

    Args:
      key (str): The key to be pressed down. The valid names are listed in
      pyautogui.KEY_NAMES.

    Returns:
      None