Origin: Germanic Old English prefix
For keeps has 2 different meanings across 2 categories:
Adverb · Prep_phrase
for the winner to keep all
"they played for keeps"
With an agreement or intention to retain what one gains or receives.