You need to find the keys to the three doors in the area where you're standing.
The only thing that seems to be here are those balls rolling across the floor.
Try hitting one.
There's a pattern to how they roll out of those holes. If you get your timing and aim down, you should be able to use your magic ball to hit one.