Plants stretch in response to PPFD. They don't sense the height of a light, but they react to light intensity and, of course, color/wavelength.
The best way to keep a plant short, in terms of light, is to use a veg light and give it lots of light. Veg lights have lots of blue photons and blue...