My friends always come to my place to play DotA and He always change my setting to Legacy Key.

When he finished the game I must change it back again by un-tick Legacy key and set buttons one by one.