mfort@ub.d.umn.edu (MiChAeL FoRt) (11/04/90)
What I do when I want to check keys is to use the GetKeys routine in the toolbox (ITM V1 P259). This should be your answer. I use it in an Asteroids clone I wrote. It will give you a bitmap of the keys, but there is a catch. Command keys and the Power key are okay. Regular text keys such as the alpha numeric keys can only have about two keys down reguardless of the modifier keys. I do not think that the map refered to on page 259 of Inside the Macintosh Volume I is correct. However, you can test bits, which is another mac toolbox call. Just test the keys you want in a test program and make cross reference tables if nessecary. As a note, the power key will go down, but will stay ON forever. I dont know what will clear this bit.