Disable, Enable a User Input?

Is there any way I can disable an input?
For example, my character reloads, if you try to fire the input is rejected.
Then when the animation is finished, enable the input.

What should happen -
Press R
animation starts reload
disable left mouse button click input
animation finishes
enable left button click.

Please help!

Just an example:

var reloadTime : float = 1.0;
private var nextFireTime = 0.0;

function Whatever () {
     if (Input.GetMouseButtonDown(0) && Time.time > nextFireTime) {
            nextFireTime = Time.time + reloadTime;
    //Fire bullet do Whatever