how to stop axis rotation or set and get torque or set lock rotation on an axis of an actor?

I have a actor wich i rotate from x axis with the keyboard, but when i add a force to this and bounce on a superficie, starts on bouncing direction and keeps rotating forever on this axis. if i block axis on constranits - lock rotation from phisics panel to prevent rotate when bounce, i cant rotate with my keyboard. I dont know, but maybe there is a way to set torque or rotation velocity to 0 or set lock rotation axis while its runing the game when i press the keyboard key to rotate and lock again to prevent rotation when is bouncing.