The root theory of animal training is cause and effect. An animal behavior is either rewarded or discouraged. You want to discourage pecking so you need a 'discouragemet' is doesn't have to be a 'thump' which has a tendency to make a creature 'head shy' -meaning anytime it sees your hand it...