Problem with look_at

Godot Version

Question

am trying to program a simple top-down shooter, and i have made athe movement but, ive been trying to make the player look at the mouse with this code

extends CharacterBody2D

@export var speed = 400

func get_input():
var input_direction = Input.get_vector(“left”, “right”, “up”, “down”)
velocity = input_direction * speed

func _physics_process(delta):
get_input()
move_and_slide()
look_at(get_global_mouse_position())

the problem is it happens this when i run it( i cannot upload the flie for the moment but i can explain it ) so what it happenes is the player moves in a circle following the mouse, please someone help me with this

I have tested the code and it works for me as I would expect: When I press down/up/…, the player moves down/up/…
Can you please show your scene tree?