Use the «Record» button to record the twists that you do in the 3D view.
When the «Reord» button is selected, then all twists that you do in the 3D view are inserted at the cursor position in the script text field.