That's an easy one: Fold like you did. Nice hand.
Have a look again at the articles. According to basic strategy, if there is a raise after you (even if the opponent limped into the hand to begin with), you only go all-in with: TT, JJ, QQ, KK, AA or AK. So with KQ you have an easy fold.
There are spme players you will come across who 'limp-raise'. They limp with a very strong hand in the hope that someone else bets and then they reraise. It's annoying as a short-stacker when this happens (because if they had raised in the first place we would have just folded - that's why they do it
), but we still have to fold in these cases unless we ourselves have a very strong hand.
When you find a player who does this - and especially if someone else calls them and you see what hands they do it with - you can make a note on them and the next time they limp you can make a decision whether you want to raise with a marginal hand if you think there is a good chance they will re-raise you. Ofc, if you see that they also do this with weaker hands, you can push all in more easily, but generally if you stick to the basic strategy above, you won't go wrong at NL5
Regards,
Tim