d;
                        const lastPressed = lastPresseds[i];
                        if (pressed && !lastPressed) {
                          const tab = tabs[menuMesh.listMesh.scrollIndex + j];
                          moves[i] = tab;

                          localVector.fromArray(gamepad.pose.position);
                          localQuaternion.fromArray(gamepad.pose.orientation);
                          const distance = localVector
                            .distanceTo(
                        