Codechef ide issue

Why scrolling through the keyboard (within my code i.e. in between the lines of code) my pointer (the word where the blinker blinks) automatically goes at the end of line. I don’t know why ?? So, if anyone was facing the same issue then please let me know the solution as it’s really frustrating.