from time import sleep
import keyboard

sleep(2)
for i in range(15):
    keyboard.press_and_release('t')
    sleep(0.3)