Is it possible to assign multiple movement keys to character controller

float horizontal = Input.GetAxisRaw(“Horizontal”);
float vertical = Input.GetAxisRaw(“Vertical”);
Vector3 direction = new Vector3(horizontal, 0f, vertical).normalized;

        if (direction.magnitude >= 0.1f)
            float targetAngle = Mathf.Atan2(direction.x, direction.z) * Mathf.Rad2Deg + cam.eulerAngles.y;
            float angle = Mathf.SmoothDampAngle(transform.eulerAngles.y, targetAngle, ref turnSmoothVelocity, turnSmoothTime);
            transform.rotation = Quaternion.Euler(0f, angle, 0f);

            Vector3 moveDir = Quaternion.Euler(0f, targetAngle, 0f) * Vector3.forward;
            controller.Move(moveDir.normalized * speed * Time.deltaTime);

I use this movement script twice for my 2 characters but with split-screen multiplayer I cannot figure out a way to assign movement keys to each, wasd already works but I want the second player to move using the arrow keys. I have checked input manager but have found nothing.

You can do that using the Unity’s new Input system. Check this page out for reference