Pass the clip rectangle to the sprite loading function.
Add an example program processing the pressed keys of the keyboard.