

def keyDown(key, pause=None, _pause=True):
    'Performs a keyboard key press without the release. This will put that\n    key in a held down state.\n\n    NOTE: For some reason, this does not seem to cause key repeats like would\n    happen if a keyboard key was held down on a text field.\n\n    Args:\n      key (str): The key to be pressed down. The valid names are listed in\n      KEYBOARD_KEYS.\n\n    Returns:\n      None\n    '
    if (len(key) > 1):
        key = key.lower()
    _failSafeCheck()
    platformModule._keyDown(key)
    _autoPause(pause, _pause)

dataset/ETHPy150Open asweigart/pyautogui/pyautogui/__init__.py keyDown/original