Is there any particular reason to want to use the mouse to move a box? Usually you would want to use the keyboard(WASD or arrows) to move the players' position and mouse for rotation/direction. By using the input map in Godot, it is quite simple to map keys or the gamepad as input.
Something like this gives you the barebones code of how to go about this:
extends KinematicBody
var speed = 5
var velocity = Vector3()
func _ready():
set_fixed_process(true)
func _fixed_process(delta):
move_player(delta)
func move_player(delta):
velocity = Vector3(0, 0, 0)
if (Input.is_action_pressed("ui_left")):
velocity.x = -speed
if (Input.is_action_pressed("ui_right")):
velocity.x = speed
if (Input.is_action_pressed("ui_up")):
velocity.z = -speed
if (Input.is_action_pressed("ui_down")):
velocity.z = speed
move(velocity * delta)