use arrow keys or wad to move. click and drag the portals and the box to move them.
I used the physics from one of my earlier projects.