The applet A1.java creates a single
Sprite object. The Sprite method tick gets called 10 times
per second and this is where the game state is updated. The parameter
kid holds the "key is down" list: it is an array of boolean
values - a true value for kid[KeyEvent.VK_UP] indicates that
the up key is currently being held down.