super mario world help

how do you get out of the forest of illusion? I beat forest of illusion #4, and i dont know what to do now! please help me!!! thanks!

To Forest Secret Area:
Play the level as normal until you get to the midway checkpoint. From here,
head right and go down the steps and go past the pipe in mid air. Jump over
the gap and wait until the jumping Koopa goes to where the mid air pipe is,
and jump on him to gain height so you can land onto the pipe. Enter the pipe
and put the key and keyhole together. - from GameFAQs.
This leads to the Star World though.

The path to Roy’s Castle is in Forest of Illusion 3. There’s a green pipe you can use that goes to a keyhole. The other exit leads to the Forest Ghost House.