Click on the Flash applet first, then use the left and right arrow keys to move.

 

Imagine you are the blue square, moving across a thick line of matter (represented by the green and red band). The line goes on forever to the right and left, but only exists in part of the universe vertically. The rest is empty space. In this example, there exists both an infinite amount of matter and an infinite amount of space in a boundless universe.