Solution: Kara, the tunnel seeker II

Kara walks straight ahead until there is a tree to his left and right. Then he continues until there no tree either to his left or right.

while not (kara.treeLeft and kara.treeRight)
  kara.move
end

while kara.treeLeft and kara.treeRight
  kara.move
end