I don't know if this will help your cause and is super late, but for people that come here in the future this may help!
If you use a controller , gamepad, Joystick, Razer gamepad of any kind than you may need to disable them before you can play. Plants vs Zombies Garden Warfare 1, 2, and Saints Row games are very picky and like you to disable all of them before play.
If you need help on going to Device manager > https://www.google.com/search?q=how+to+access+device+manager&oq=how+to+access+device+manager&aqs=chrome..69i57j0l5.4778j0j7&sourceid=chrome&ie=UTF-8
This is my fix.
Go to Device manager
Click on > Human Interface Devices (HID)
Right click and hit disable where possible
Disable everything that can be disabled 1 by 1, check to see if your mouse and keyboard work properly out of the game.
If you disabled your mouse or keyboard just use one or the other to re enable that HID device than continue to disable all HID devices.
When prompted - Disabling this device will cause it to stop functioning. Do you really want to disable it? Click ‘Yes.’
When prompted to restart hit NO until all devices are disabled.
Once all HID devices are disabled restart PC and log into game and see if your gamepad, controller, or whatever is now working.