Moved input logic to input class and updated InputHandler to return new class