Playing animations without keyboard keys script problem

How would i make this script work for playing animations without keyboard keys?

using UnityEngine;
using System.Collections;

public class startanim : MonoBehaviour {

	public AnimationClip Armature;
 } 
// Use this for initialization
	void Start () {
		
		
		
		    animation.Play(" ArmatureAction ");
	}
    



	}
	
	// Update is called once per frame
	void Update () {
	
	}
}

What do you mean, “without keyboard keys”?

Also, you’ve got mismatched brackets in the code you posted, so either that’s not your actual code, or it doesn’t compile right now…

The script not accessing keyboard keys.

I would recommend doing it like this:

The players enters the trigger (or whatever you want)
The script finds Character Controller
It disables the controls
After the anim it enables the controls again.

All i want to do is play the animation through a script for now.That other stuff later.