output keys to #output
handle shift and caps properly.  esc, f1-f12, ctrl, etc. now work