escape key closes the program
clean up the SDL example a bit