He kept _______ the flowers in the vase until they looked perfect.
arranging
When the verb 'keep' is used in the sense of continuing an action, it is followed by the -ing form of the next verb (gerund), as in 'keep trying' or 'kept talking'.
In the sentence, he went on arranging the flowers again and again until they looked perfect, so the -ing form is needed: He kept arranging the flowers in the vase until they looked perfect.
So 'arranging' is correct.
'Arranges' (present tense), 'arrange' (base form) and 'arranged' (past form) cannot follow 'kept' in this meaning.
Hence, arranging.