If the keys aren't working, try clicking on the game (to get the focus back, if you had to click on "Is it ok to run this java applet" or some other security message from your web browser)
Source Code: apcs.mathorama.com
(free for educational use)