def menu(): #[...] while not keydown(5): if keydown(4) or keydown(17): jeu() #[...]