so basically i tried the following python script with both pyautogui and pynput (i will leave both codes below), what i want it to do is to hold the key "s" for 10 seconds, after that release it, but instead what it does is press the key once only, following is the code
Pynput
keyboard = Controller()
if __name__ == '__main__':
keyboard.press("s")
time.sleep(10)
keyboard.release("s")
Pyautogui
if __name__ == '__main__':
keyDown("s")
time.sleep(10)
keyUp("s")
thanks, and sorry for any incovinience