Neural networks for control