How to limit torquek acceleration and stop when input is not being press

HI I am makeing a game where the player move a ball with torque, as I hold down the input the ball rolls faster and faster.

Is ther a way to limit the speed of torquek aswall for the ball to stop when ther is no input?