examples now quit on 'q'

It was a bit difficult to properly navigate through the examples, one had to close the terminal each time.
I've added to each example an unhandled_input function so that they quit on 'q',  and a footer displaying "Q to quit".