Angelique Kerber's quest for a maiden WTA Finals title remains alive after she beat Naomi Osaka in three sets on Wednesday.