This is the exact issue I had.
I basically has to map the worlds rectangles and then move to mouse. An array or rectangles linked to each world. I had to map the world switch button and move the mouse, but IIRC the mouse didn't work. But that's how I tried going about it.