[SOLVED] How to use Key pressed (text expression)?

OK found answer in documentation
Pretty much straight forward

We have this

But i don’t how to configure it?

Description in upper right says
Check if a key, retrieved from result of the expression, is pressed

To my understanding i should be able to make Action that if Z key is pressed give something “Attack” expression

So now i could use that as in Condition
Key pressed (text expression) and put there “Attack”

If i am right then what action i use to do so?

Or is it for something else?