Find the word definition

Wiktionary
keep one's pecker up

vb. (context chiefly British idiomatic English) To remain cheerful; keep smiling.