Under options, keybinds/ space find the X key... it's 'follow target' or 'toggle follow target'. Toggle it until you aren't locked into following your target and then unbind the X key. That should do it.
Edit: I think it's the X key... It's been a while.