trying to listen to mouse and keyboard

KeyListener?  wrap in a thread?
dual input complete!

added key listener and mouse listener and synchronization object so main
thread can wait on this object and event threads can notify this object.