,How to print on screen the key or button that player have choose

Hi, I’ve a question about input tab in unity. I want to show ButtonCode that player has choose.

===================== in code, I have it ==============================

if(minimumDistance <= 2)
{
    textPickUp.text = ("Press E to pick up the key");
}

if (Input.GetButtonDown("Fire1") && minimumDistance <= 2)
{
    //pick up the key
}

======================== but I want to a kind like this ===============

   if(minimumDistance <= 2)
{
    textPickUp.text = ("Press " + button(Fire1) +  " to pick up the key");
}

if (Input.GetButtonDown("Fire1") && minimumDistance <= 2)
{
    //pick up the key
}

Please, how do I get it?

Let the user decide their controls, then display them the options for pickup.