Add functionality to sanely quit the program

Attached is code which allows the user to quit the Binary-Clock process by pressing the `q` key.