added functionality to quit on keypress
Merge pull request #1 from cyphar/master

Add functionality to sanely quit the program