Hi, I would say it's an adjective. You perhaps see this more clearly in examples like eg I was going to change the colour of my kitchen, but then I decided to keep it blue. eg I gave my dog a bone to keep it quiet.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.