Contains a 'q' or 'Q', or is a 'q' or 'Q'? These are two very different situations.

Wrap your code inside a while statement, and make it's condition true (in other-words, an infinite loop). Then...