How to implement " if(Input.GetKeyDown(KeyCode.A))" in new input system?

I usually want to do some test triggered by some key,just like this

            if (Input.GetKeyDown(KeyCode.A))
            {
                //test code
            }

It is about in the old input system,I want to implement it in new input system… Maybe I could register the “A” key as input action in inputmap,but it seems a liittle too complicated…Is there some simple way to do it ?

Check this out - How do I…? | Input System | 1.0.2

1 Like