Just out of curiosity, is there some vetting process for keyboards that qualifies them as "not cheating"? Any hardware advances in input/output devices could be considered an unfair advantage, right? If my keyboard is a simple, non-smart one with significantly lower latency than your keyboard, does that mean I'm cheating? At some point you have to draw a line and say 'this is acceptable' and 'that is not', who draws the line? Does the line move? When does it move?
Cheating is going outside the defined rules of a game. If a specific game calls out that macros of any kind are forbidden, then great, that means some of the features of modern keyboards are cheating. Now, how do you police that? Pro-level competitive players are likely to be so fast and coordinated as to be close to indistinguishable from a well configured macro. Really, if you want to have limits on input devices, you need to codify that into the game, not say any advances in keyboard design are cheating. If using a macro lets a player be better than everyone else, limit the input capability to the level that is considered fair and don't worry about what keyboard someone is using. Otherwise, it's like complaining about someone using expensive high-refresh-rate gear and calling them a cheater.
What you're describing in your second paragraph is how good anticheat works. It is inevitable and unfortunate (from the perspective of GP) that it must be tuned to near-olympic performance as the cap (or you risk punishing people who are just good, which is a really bad idea).
edit: Of course, once you go down this rabbithole you start realising that olympic level performance is a freak accident of genetics, which is like having your own little biological "cheat". It makes you categorically better than other people at specific things. We return to the statement that figuring out whether that's cheating is immaterial. To my mind it's also a waste of time.