How do i limit my players velocity?

Hey everybody!

i´m making a ball rolling game but i´ve a minor problem.

Problem: The longer i hold down “W” for going forward the faster my player goes.
I´m looking for how i can limit its max speed!

My Script
```javascript
**#pragma strict

var jumpHeight = 0.02;
static var jumpCount = 0;
var canJump = true;

function Update ()
{
if (Input.GetKey (KeyCode.W) && jumpCount == 0)
{
GetComponent.().AddForce (0, 0, 12);
}
if (Input.GetKey (KeyCode.S))
{
GetComponent.().AddForce (0, 0, -8);
}
if (Input.GetKey (KeyCode.A))
{
GetComponent.().AddForce (-11, 0, 0);
}
if (Input.GetKey (KeyCode.D))
{
GetComponent.().AddForce (11, 0, 0);
}
if (Input.GetKey (KeyCode.Space) && jumpCount == 0)
{
GetComponent.().AddForce(Vector3.up * jumpHeight, ForceMode.Impulse); jumpCount = 1;
}
}

function OnCollisionEnter (hit : Collision)
{
if(hit.gameObject.tag == “Floor”)
{
jumpCount = 0;
}
}**
```

Watch the “Roll-a-Ball” tutorial: