E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
Pecker.
Keep your pecker up. As the mouth is in the head, pecker (the mouth) means the head; and to keep your pecker up, means to keep your head up, or, more familiarly, keep your tail up; never say die.