I think that's a question of where the focus is. Generally, the focus will not be on the applet when the page is loaded, so for the applet to see any keystrokes, it needs to get the focus first (which is done by clicking on it).
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop