Are you referring to the walk parameter? Remember that’s based off the vertical axis. So when you press the W key or the up arrow we’re increasing the vertical axis value above 0. The transition towards “walk fwd” happens when it detects a value greater than 0.1 and since we have “use root motion” enabled it starts moving forward when walking.
When using the cube you’d specify specific positions/rotations/etc to animate the object. So if I have two sets of keyframes, one starting off at position x of 0 and the second set at position x of 1 it’ll move forward to that x position of one each time.
You could use the exact same setup for the rigged character for the cube. When the walk parameter is above 0.1 we could transition into a second cube animation. The parameter has nothing to do with the actual movement of the object it’s just a value used to determine when the animation will transition.
The animation itself determines how/where it’s going to move. Hope that makes some sense. Parameters just provide the condition of when to transition.