def wait(b): while Partie: for i in b: if keydown(i): while keydown(i):True return i