Good god, they don't waste any time do they?

I wonder, how does botting work? Is there a way to detect proper control input from either a mouse, keyboard or gamepad? If that can be done, then implementing a system where it will automatically kick a player from the server if no control input has been detected for 15 minutes or whatever? I'm not a programmer (web designer lol) so I don't know if that's possible.