(tank controls) keeping forward orientation after releasing fwd button but turning

Yeah I know how the tick works :). I am not sure how to get the character to move to new direction after I release the w button and start turning. It still rotates but goes straight. Like a car that only steers when I press the throttle.