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

For basic tank controls you could try something like this:

This accumulates the speed factor in a variable and then applies is constantly.

Image from Gyazo