So here is some code that successfully displays a slider, the value of a dynamic variable, and cycles through a list of 10 images titled 'imgs' with keyboard commands.
ExpressionCell[
Column@{Slider[Dynamic[y], {1, 10, 1}], Dynamic@y,
Dynamic[imgs[[y]]]},
CellEventActions -> {"LeftArrowKeyDown" :> (y =
Evaluate[Max[1, y - 1]]),
"RightArrowKeyDown" :> (y = Evaluate[Min[10, y = y + 1]])}]
However, when I put this code into DynamicModule[{y},"Insert previous block of code here"]
The keyboard functionality ceases and when trying to use the keyboard I get there error: "Recursion depth of 1024 exceeded during evaluation of -1+y$$."
How can I get the CellEventActions to work properly within DynamicModule?
Much thanks in advance!