How to set the corresponding attack button?

to set it to a keyboard stroke you need to set it in graph