Touch Inputs Detected As Keyboard Inputs?

this is definitely a bug:
Screenshot (303)

As you can see, I tried printing for every input whether it’s a keyboard key or not. And guess what was printed on my phone’s screen after tapping and moving my fingers on screen?

That’s right. Every single touch input I made was detected as a keyboard key.
For some reason, it seems like there’s an instant right after releasing my fingers from pressing the screen at which the AnyKey is for some reason called, no finger is touching the screen and the key is detected as a keyboard key.

This is very weird. Is there a fix?