How do you loop the move component to node.

Probably a basic answer, but I have a character on monkey bars, if the player presses W he moves 20 units forward (the distance to the next monkey bar,) how would I programme it so if the button is held, the movement loops.

project settings → input → Axis Mappings…put/index.html

Forward ( W )… scale 1.0
Backward (S) scale -1.0

Movement inputs fire every tick. If not pressing then 0 is passed. If pressing then 1 or whatever your scale value is.