Rigid transformations interaction

I made this interaction to show students the effects of simple rigid transformations. Originally, I wanted the commands typed on the table to affect the animation in real-time or at the time of submission. For instance, for a horizontal translation, I wanted to assign an initial value to a variable for the change in x. Then, increase or decrease the value by a parameter provided by the student every time a condition is met.

Any help is appreciated.