Extract controller handling into a separate class.
Devide the responsibility of detecting the input and interperting it in the game.