Make sure you do not have 2 Controls scripts in your project. It looks to me like you do. This sometimes happen with the input stuff when you change it to generate code. It may create the file and then, when you change the location and stuff where it should generate it, it generates a new copy and now you have 2. Or it generates and then you move the file into a folder. the generator does not know about this move, so it generates a new copy in the original place