A century from Rob Keogh held up Sussex's push for victory on day two at Wantage Road after half centuries from Ashar Zaidi and Steve Magoffin had put them in a strong position.