Use the left and right arrow keys to move left and right.
This randomly generates land. When it draws it, it adds water, also! I think other people have used similar methods, but with this you can go inside and easily change things that will change the land. Because of the method, it does eventually repeat.