It seems the applet does not get keyboard focus with newer versions of Java. In the class JPacMan.java, one needs to add a line \"setFocusable(true);\" in the init() method to make sure that keystrokes can actually be read by the KeyListener. After that, everything works fine ...