when click a key in keyboard the python code is stop in pyautogui code example
Example: python hotkey pyautogui
>>> pyautogui.press('enter') # press the Enter key
>>> pyautogui.press('f1') # press the F1 key
>>> pyautogui.press('left') # press the left arrow key