From: "Lex Spoon" lex@cc.gatech.edu
I'm sure someone will post a more thorough response, but note that not all keys *have* an ASCII code. What is ASCII for F1, or up-arrow?
Several possible solutions:
1. Use Unicode instead of ASCII and define private characters for special keys 2. Assocate strings with the event and generate an equivalent escape-sequence (you still know that it was a single key because it comes in one event) 3. You still have the raw keyboard code...
AFAIK, MacOS-X/Cocoa does all of these at the same time.
Marcel