change the inputManger to eventDirven type