If you are using Roses and Wine, the controller input may be being lost when the window focus is lost. Aali has fixed this for latest driver.. if and when he releases it., If Roses and Wine is what caused this problem, there is nothing you can do about it, except maybe use an emulator for the keyboard with your controller.