Hello everyone I found a solution on my own.
I made a simple function that will check if a key is bound to something, and if so, will return 'true':
Code:
function bool CheckKeyIsBound(string Key, string ExecFunctionName)
{
local string TestString, KeyString;
TestString = ConsoleCommand("get input " $KeyString);
if( ExecFunctionName ~= TestString )
{
return true;
}
return false;
}
Basically what this function does is: you give it a Key (for example "SPACE", and a command (in this case an exec(), for example Jump(),
and if the "Space" key is bound to Jump(), the function will return true. If else, the function will return false.
Of course, if you want to check multiple keys, you have to run the function multiple times or make a simple loop.
Hope this will be useful.