Cursor uncontrollably moves left on Mac

I am able to edit properties and scripts in advanced editor, but as long as I press Mac Command Key + Arrow right (or left) my cursor goes crazy and keeps moving until it reaches the end (or start) of the text and I am not able to stop it, other than reloading the browser tab or sometimes pressing Alt + Left (or Right)