help

I am very new to TADS3, so I am trying to follow the examples in the guide “Getting Started in TADS3” by Eric Eve. So far it has been pretty easy to follow and understand, but I have run into a snag.
The following doesn’t work.

dobjFor(LookIn)
{

check()
{
  if(!isHekdBy(gActor))
  {
    "text";
    exit;
  }
}
action()    
{
   if(ring.moved)
   {
     "text";
     exit;
   }
   ring.makePresent();
   "text";
   addToScore(1, 'finding the ring');
}

}

Possibly you want isHeldBy, rather than isHekdBy.

Also, for future reference, when pasting code into messages in this forum, if you select your code and then use the Code button at the top of the input window, your indentation will be retained.