It might be helpful to read page 98 and then go to the author's Villanova
web site (found on my "books" link):
http://duke.csc.villanova.edu/jss1/bookResources/
http://duke.csc.villanova.edu/jss1/bookResources/keyboard.jsp
Each of these has detailed instructions on use of Keyboard class -- the
most important instruction is this:
1. Download the cs1jar.zip file. This file is compressed.
2. Extract the cs1.jar file. This is a Java Archive (JAR) file
containing the cs1 package.
3. Store the cs1.jar file in the following directory:
C:\j2sdk1.4.0\jre\lib\ext
4. Copy the cs1.jar file and store the copy in:
C:\Program Files\Java\j2re1.4.0\lib\ext
Jerry
Jerry Ross