Added inputmanager... still needs more testing...