The Sanskrit word samata refers to equanimity. Neither getting too happy when something good happens, nor getting too sad when something bad happens.
Samata is possibly the first step in karma yoga.
Can we directly give up all attachments and desires? Very difficult.
But can we slowly and surely train ourselves to be lesser and lesser volatile (of mind) to outside events? Absolutely.
And this will naturally cultivate a sense of detachment. Such an internal shift leads to a separation between the active surface personality, engrossed in various engagements, and the inner peace and detachment.
The individual begins to perceive that it is not they who are solely responsible for their actions, but rather that the actions are being carried out through them.
This perspective eliminates feelings of possessiveness or attachment to the outcome of their endeavors, regardless of their perceived significance or success in conventional consciousness.