def press(keys, presses=1, interval=0.0, pause=None, _pause=True):
    if type(keys) == str:
        keys = [keys] # put string in a list
    else:
        lowerKeys = []
        for s in keys:
            if len(s) > 1:
                lowerKeys.append(s.lower())
            else:
                lowerKeys.append(s)
    interval = float(interval)
    for i in range(presses):
        for k in keys:
            _failSafeCheck()
            platformModule._keyDown(k)
            platformModule._keyUp(k)
        time.sleep(interval)

    _autoPause(pause, _pause)
Start a thread which will eventually kill the process if the tests aren't finished
dataset/ETHPy150Open asweigart/pyautogui/pyautogui/__init__.py/press--crossover with--dataset/ETHPy150Open ufora/ufora/ufora/test/UnitTestCommon.py/startTimeoutThread