[popcorn]can detect key event, key 'q' is exit