Alsalam alikum brother/syster. The prophet [pbuh] said
Actions are according to intentions, and everyone will get what was intended. Whoever migrates with an intention for Allah and His messenger, the migration will be for the sake of Allah and his Messenger. And whoever migrates for worldly gain or to marry a woman, then his migration will be for the sake of whatever he migrated for. Source
So if you were inredning to do that act of kuffur then you have to repent and seek forgivness but if you didnt intend on doing it then inshallah it is not kuffur but try not to do it again and seek forgivness anyways, it is never wrong to seek forgivness.
Hope that answers your question.
Allah knows best.