Activision in a tweet said Call of Duty’s anti-cheat mechanism, named Ricochet, will now close the game application on PC if it detects if a mouse & keyboard player turn on aim assist. This works across Modern Warfare 3, Modern Warfare 2, and Warzone.

“Our security detection systems now target players using tools to activate aim assist while using a mouse and keyboard,” they said. “The Call of Duty application will close if detected. Repeated use of these tools may lead to further account action.”
Source: IGN