Fixed duplication of input from keyboard and controller