Moved method to inputmanager