Fixed the input manager, currently working