How can i change my players move direction to global instead of local

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Movement : MonoBehaviour
{
    public float speed;
    private Vector2 direction;

    void Start()
    {

    }
    private void Update()
    {
        GetInput();
        Move();
        
    }

    public void Move()
    {
        transform.Translate(direction * speed * Time.deltaTime);
        
    }

    private void GetInput()
    {
        direction = Vector2.zero;

        if (Input.GetKey(KeyCode.W))
        {
            direction += Vector2.up;

        }
        if (Input.GetKey(KeyCode.A))
        {
            direction += Vector2.left;

        }
        if (Input.GetKey(KeyCode.S))
            direction += Vector2.down;
        {

        }
        if (Input.GetKey(KeyCode.D))
        {
            direction += Vector2.right;

        }
    }
}

Try:

     public void Move()
     {
         transform.Translate(direction * speed * Time.deltaTime, Space.World);
         
     }