from time import sleep
import keyboard

sleep(5)
keyboard.press_and_release('g')