Key indices give up early gains to end marginally lower for