How to get Input Button name?

How can I access the button name that is selected for the current Input?

Lets say that I have:

    Positive Button: A

How can I access the A? For something like:

"Press the (button asigned by the user, in this case A) to continue"

Instead of

"Press the action button to continue"

//This will get the name of the button that was pressed.

string name =;

First you need to go to the input manager (Edit>ProjectSettings>Input).
You Name it Action(or whatever you want)and you choose the positive button be A.

If (Input.GetButton("Action")){