fixes localKey for advancedTurtleAI