ship pane send types text and presses keys, as if you typed them:
ship pane send --pane "$PANE" "cargo test" --key entership pane send --pane "$PANE" --key ctrl-cgit diff | ship pane send --pane "$PANE" - # text from stdinText goes in first and then each --key in order, and key names are the same as in the config.