Changing keybind is allowed as long as holding down the new bind does not automatically click for you. For example rebind left click to a keyboard button and hold it down on 1.8 it will swing once, if you do it on some newer versions it will continue to swing. If you rebind left click to something that will continue to swing when being held down, it will be treated as autoclicking and you will be punished.