use the left and right arrow keys when you get close to the edge that is when the background will move this configuration is simulator to how a lot of side scrolling games (like super mario for instance) will handle background movement.
should i make a tutorial and upload it to YouTube? let me know in the comments!