Added code to prevent the space and arrow keys from moving the screen around