hey hey its final project time in my java class

im making a simple game (kind of like a 1 player slimeball), but Im not sure how to get keyboard input in an applet. I know how to get it in normal console, but not too sure about applets. Thats all I need, thanks all!