extends KinematicBody2D

func _process(delta):
var velocity = Vector2()
var speed = 400

if Input.is_action_pressed("ui_right"):
velocity.x += 1
if Input.is_action_pressed("ui_left"):
velocity.x -= 1
if Input.is_action_pressed("ui_down"):
velocity.y += 1
if Input.is_action_pressed("ui_up"):
velocity.y -= 1

if Input.is_action_pressed("ui_accept"):
speed = 200

if velocity.length() > 0:
velocity = velocity.normalized() * speed

position += velocity * delta

これで上と右とシフト押せば右斜め上方向にゆっくり移動すると思うんだけどそれができない
シフトの代わりにスペースとかエンター押すとできる