HELP i made myself my first movement script and when i press play my cube just goes 1 direction without me pressing anything please help ASAP

HELP i made myself my first movement script and when i press play my cube just goes 1 direction without me pressing anything please help ASAP

If you post your script in code tags, people are far more likely to look at it (99% of the time I do not bother looking at problems with images of scripts because I am too lazy to type it out to test it), here it is for you:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MoveCube : MonoBehaviour
{
public float speed = 0.1f;
void Update()
{
float xDirection = Input.GetAxis("Horizontal");
float yDirection = Input.GetAxis("Vertical");
Vector3 moveDirection = new Vector3(xDirection, 0, yDirection);
transform.position += moveDirection * speed;
}
}
Whilst we are on that subject, it’s better not to use caps lock.
The code seems to work OK for me. Here are some potential problems you may be having: