Translation of "Up down" in German

He rose and began to pace up and down the room.
Er stand auf und begann im Zimmer auf und ab zu gehen.
Books v1

Instead of just turning up and down, you now had to program it.
Statt sie nur auf- oder zuzudrehen, musste man sie jetzt programmieren.
TED2020 v1