I will elaborate a bit on Jeff's explanation
Go to Operator menu then Edit Button Scripts. The RefAll button should now be flashing, click on it and the VB Editor should open up, the buttons are default in the order Z then Y then X then A etc so just reorder them to suit then close and save.
Hood