Getting the button a command is binded to

How would you do this?
e.g. something like GetBindedCommand("+attack") would return “mouse1” (if binded to that), etc.

[lua]local key = input.LookupBinding("+attack")[/lua]

Thanks!