Added method to close window by pressing 'q'
minor edit for also considering 'Q'
Now can gracefully close a window
oops forgot break in switch.
forgot break in switch again...
Merge pull request #33 from yzhwang/master

Fixed the X11 exiting error.