A working demo of KeyDemo will appear below. Click inside the applet to interact with it.

Click below to download the source files for KeyDemo.

Click here to download an Eclipse project for KeyDemo. When you create your run configuation in Eclipse for this demo, set the width to "400" and the height to "200".