First, create a new mission called Test, with a .cs file, a .ted.vol file, and a .mis file. From the mission editor, put down a Goad and name it Goad. In a fresh Test.cs script, include:
$Goad = "MissionGroup/Goad";
function whackGoad()
{
healObject($Goad, -1);
say(everybody, 0, "Ow!");
}
In the keyboard map, on the client side, include:
bindCommand(keyboard0, break, control, "h", TO, "whackGoad();");
               (
geocities.com/stslabs)