# [Jelly], <s>24</s> 23 bytes

 O_97dZŻ€IṠxAƊ€€Ḥ2¦Z;€0F

[Try it online!][TIO-k26jtgyz]

[Jelly]: https://github.com/DennisMitchell/jelly
[TIO-k26jtgyz]: https://tio.run/##y0rNyan8/98/3tI8Jero7kdNazwf7lxQ4XisC8gEooc7lhgdWhZlDWQauP3//z85PyU1PT8n7b@hAQA "Jelly – Try It Online"

A dyadic link taking the word as the left argument and the width as the right. Returns a list of integers where:

 -2 = L
 -1 = U
 0 = Select
 1 = R
 2 = D