01 IF Character has reached the end of the platform
02 display “you win”
04 play music
05 UNTIL any key is pressed
06 END IF
previously the until any key is pressed was at the bottom of the code when it needed to be above the END IF as it was needed to control the repeating of the music, not ending the games. the music was set to repeat till you pressed any button and then it would stop playing.