3d problem with a simple title game

my problem now is that I can’t move the program in 3D like the one in 2d but I’m looking for solutions, I posted the code to make you understand the purpose of the program, in a shape group (like my cube) where is the control point? with the tralate I get strange things, anyway if you don’t have time there is no problem