To change guns in Palisade Guardian 2, you first need to have purchased more than one weapon. Once you own alternatives, press the F key to cycle between them.
So the order is simple: buy the weapons you want, then tap F during play to swap to the one that best fits the situation.