I want to do something like this
while True: fuction() function_that_checks_if_q_is_pressed() if function_that_checks_if_q_is_pressed==True: