readkey() blocks once you press a key it goes past that and returns from the function.... if you want it to stay up and have keys for interaction I would put it in a loop and check key against 'q'...