Input.inputString to try to know which key is pressed

Trying to use Input.inputString i just get no result with most of the key…
Can you see what’s wrong in my code ? :

var a = “aa”;

function FixedUpdate () {

if (Input.anyKey)
a = Input.inputString;

Debug.Log(a);
}

Ok i’m sorry if this is a little stupid question…

I find the answer… Input.inputString works very well.
The condition in my code was the problem.

Here’s a code that works :

private var a = “”;

function Start () {

}

function FixedUpdate () {

if(Input.inputString != “”)
a = Input.inputString;

Debug.Log(a);
}

(i’m not sure the FixedUpdate is really neccesary)