Add "setRenderMode(1);" into the onResize function.
Then change between the numbers 0 to 3 (so "setRenderMode(3);" for example) to try the different modes. You may have to resize the window a little each time to make the new mode start but I didn't have to.
It's a little annoying that it won't register button presses.