Keep one’s pecker up
This British expression has nothing to do with the American slang, pecker, which means penis. Pecker here is a British colloquialism for the nose and is used in the sense of keeping one’s nose or head held high and so keeping one’s spirits up. The expression dates from the mid-19th century.