"Peck" is a transitive verb requiring an object, so use the second sentence.
If you have a question about the English language and would like to ask one of our many English teachers and language experts, please click the button below to let us know: