Here's the output that I get.
After pressing 'p', it_match=0 and combo_buffer=['p']
After pressing 'q', it_match=1 and combo_buffer=[]
After pressing 'space', it_match=1 and combo_buffer=[]
After pressing 'a', it_match=1 and combo_buffer=[]
After pressing 'r', it_match=1 and combo_buffer=[]
After pressing 'space', it_match=1 and combo_buffer=[]
After pressing 'a', it_match=1 and combo_buffer=[]
After pressing 'g', it_match=1 and combo_buffer=[]
After pressing 's', it_match=1 and combo_buffer=[]