Could you provide a bit more info please? Difficult to say anything useful without any details. Do you experience that as a general or just with a specific game?
Only general hint I can give is to check whether the game is input focus by clicking into its window and moving the mouse.