^^ shove preflop, exactly. To bet half your stack for only a raise and give him a chance to hit a flop, JUST LIKE THIS is a mistake in most situations. If you shove chances are he'll fold KQ unless you have seen him playing alot of garbage hands he might think KQ is worth more then half his stack.
Otherwise you could have just called the raise since everyone else has already folded and saw the flop cheap. Once he moves on a flop like this then you know it's time to give up and you didn't lose alot of chips.