[Input] Fixed compilation error
[Input] Fixed SetButton index check