Thanks for this. It must be that something is wrong with my setup because this code also doesn't work for me. When I run it, the frame flashes at a painfully visible rate, and nothing whatsoever happens when I press and release the 'a' key.
I'm using a Mac and the Eclipse IDE. I'll give it a try on my PC at home tonight, but I really do need this program to work on Macs, since that's what I have at work. Any thoughts?
P.S. Is there an easy way to copy/paste example code? Whatever I tried, I always ended up without tabbed spacing but with the unnecessary line numbers.