Hit the button halfway through bonus level 2, "Hammer" before it disappears. To do this, rush through as fast as possible. The switch is about the halfway point with 3x3x3 cubes, with a hole in the middle. One of those cubes has a button that eventually disappears. Hit that button. Falling off the level forces the switch to rise to where it was in the checkpoint.