initialize inputmanager