You don't need the loop, and you might have an infinite loop problem. Take the two if statements out of the loop and get rid of it.
The two if statements inside the loop? The if button left is pressed down and if button right is pressed down
Ah, I think I spotted the problem. The official tutorial makes the player stop moving while in the menu by setting the player move route to "wait 5 frames" once per menu loop iteration. So when you exit the menu loop the player finishes the move route of waiting 5 frames (since 60 frames equal 1 second that is barely noticeable) and then the player can move again.
You however have the wait command outside the move route where it is not fulfilling this intended purpose. And you have the repeat flag checked in the player move route.
Once you set a move route it gets executed until it is finished or a new one is set. If the "wait for completion" flag is not set, this will happen independently of the event that set the route.
Since you don't set a new move route and the current move route will run forever thanks to the repeat flag, you are still setting the player move route to nothig at every possible opportunity even after you exit the menu loop. Hence you cannot move even after exiting the menu.
Ah, sorry for being unclear. The tutorial uses set move route of the player to wait 5 frames without either the wait for completion or repeat flags. The stuff I said about those was just to explain what is going on.
Putting the move route on repeat has the same general problem whether you set it to empty or to wait: the player will still be unable to move even after exiting the menu, because even when your menu event is finished executing, the move route will continue.
If you set the wait for completion flag, well now your menu event is alternating between immobilizing the player character (but not accepting input) and accepting input (but not immobilizing the player character).
No, put wait 5 frames into the move route but leave all the boxes empty (do not check repeat or wait for completion). Just like ist is in the tutorial.