Move your mouse to move the cat and use the arrow keys.
I got a bit of the code from the book: Computer Coding Games For Kids by Carol Vorderman.