From Java Tutorial - Spring 1997 Part 3:Graphics and the Abstract Windowing Toolkit Peking Tutorial, Web Certificate -- Spring-Summer 1997. byNancy J. McCracken,Geoffrey C. Fox
You may also choose to respond to individual keys being pressed from the keyboard. (Later we will learn of a more general way to handle text input.)