A surrender animation can be done by pressing the Sprint and Crouch keys at the same time, by default these are Space and C which makes it easy to press in tight situations.

While surrendering, another player can Disarm you by pressing Interact Key (Default F/Enter) while standing behind you.