Add support for moving off the ends of the screen.