In SSH terminal, arrow keys stop working after executing debug lines

In an SSH terminal window, after executing the Pycharm debug lines in a file, my arrow keys stop working and start printing "^[OA^[OC^[OD^[OA^[OB", etc.

Is there a way I can fix this?

Please sign in to leave a comment.