On the method tick, you should use: AddMovementInput. If you want to be able to disable it, do a Boolean Check like
if(bMoveForward)
AddMovementInput...
bMoveForward can be modified wherever you want
Maybe Add or Substract to that Input, if the user is pressing W or S, so he can accelerate or deccelerate
Cheers