if(!$YourAddonHasBinds)
{
$remapdivision[$remapcount] = "Your Addon Title";
$remapname[$remapcount] = "Do Something";
$remapcmd[($remapcount++)-1] = "myFunction1";
$remapdivision[$remapcount] = "Your Addon Title";
$remapname[$remapcount] = "Do Something Else";
$remapcmd[($remapcount++)-1] = "myFunction2";
$YourAddonHasBinds = 1;
}
function myFunction1(%val)
{
echo("Did something!");
}
function myFunction2(%val)
{
echo("Did something else!");
}
Make one of the 3 line paragraphs for every bind you want, the if check is so when someone gets the idea to execute your add-on 2 times it doesn't double the bindings.
The function get's called when the key is pressed, and when it is released. %val is 1 when the key is pressed and 0 when it is released, the rest should be self-explanatory