How to get a key binding in blueprint?

##this method may only be applicable in 4.15

#If your end result is to look like this:
Where the text displays the key to use…

#How do?
You only need two nodes to retrieve the key.

##To get the “text”:

  1. The ACTION EVENT node (Project Settings → Input)
  2. “Key Get Display Name”.
  3. You can now put the output of Key Get Display Name into strings or UMG texts~! :slight_smile:
    Please be aware that this will return the key undecorated (not surrounded with brackets).

##To decorate the text:

  1. Create an Append node, create three inputs.
  2. Put the output of Key Get Display Name into input 2.
  3. In input 1 and 3, put whatever decoration or pre/affix text you wish.
    In my example, “[” is in input 1, and "] " is in input 3.
1 Like