Is there a way to get the key binded to a command?

Say I wanted to get the key binded to the “noclip” command.
Is there a function I can run that goes
if GetKeyBinded(“noclip”) == KEY_V then
MsgN(“Your noclip key is binded to V!”)

I’m making some help notifications and sometimes players have their keys binded differently.

There’s a function in the input library, clientside of course, that does what you want.

key = input.LookupBinding( "noclip" )

MsgN( "You have noclip bound to " .. ( key or "[UNBOUND]" ) )