Refactored controllers to handle an input state instead of reading from keyboard