I'd say the "auto out of afk" conditions are too strict. Right now it reacts to mouse movement, key presses, camera movement on gamepad. Anything you touch, basically.

I'd suggest making it so moving your character or using an action or emote cancels AFK, but keyboard/mouse/gamepad inputs don't. This would allow you to look around or type, or alt-tab, or move the mouse without inadvertently canceling AFK, yet still enable the AFK removal on actual in-game activity.

That sounds like a decent compromise, no?