Keogh rescues Republic