combine dois filtros jq em um

Como o jq filter combina as saídas do filtro? O jq a seguir não gera output.json com o respectivo valor de arg de entrada ('jack').

input.json
{
"key1": "",
"key2": ""
}

 jq --arg input "$username" \
          'if .key1 == "<value1>"
                 then . + {"key1" : ($input) }
          else . end' input.json |
          'if .key2 == "<value2>"
                 then . + {"key2" : ($input) }
          else . end'  >  output.json
output.json
{
"key1": "jack",
"key2": "jack"
}

questionAnswers(1)

yourAnswerToTheQuestion