Lost LP because game said I was afk while in truth I was trying to get first kill while steath

I was steath teemo trying to kill enemy yasuo on mid,I was clearly not afk and was doing emotes and typing in chat the tactic to use yet game became remake please fix this. I also dont understand how the system detects afk,do I have to move for it to work?
Report as:
Offensive Spam Harassment Incorrect Board