Fix implementation of and add repetition to moveTabLeft and moveTabRight commands

This fixes #1056.
Merge pull request #1057 from mrmr1993/moveTabs

Fix implementation of and add repetition to moveTabLeft and moveTabRight commands