How i can lock mouse and keyboard ?

Hi How i can lock mouse and keyboard's buttons for 10 second ? thnx a lot

http://unity3d.com/support/documentation/ScriptReference/Input.ResetInputAxes.html

This will stop something happening if for instance you changed levels and wanted the player to stop shooting even if he had the fire button held down during the change.

Alternatively you can just put a boolean flag to stop inputs when you want

e.g.

var canMove : boolean = true;

function Update(){
   if(canMove){
      MouseInput();
   }
}

function MouseInput(){
   var h = horizontalSpeed * Input.GetAxis ("Mouse X");
}