Use WASD or the Arrow Keys to move and jump. If there is no wall in your way, you can run through the edges of the screen and wrap around to the other side.
When you pass a blank space in the background, it will change colors. Then run into an hourglass to turn those spaces into solid tiles. Use this power to reach the flag!