ExecuteInEditMode and getKey()

I’m trying to use getKey() in a c# script executed in edit mode, it always return false.
what am I doing wrong.

Why you use ExecuteInEditMode?

If you press the play button and get key it will return true.

I use this script to test

@ ExecuteInEditMode()

function Update ()
{
    Debug.Log("is get key a? " + Input.GetKey("a"));
}