So I have this code right here.
DynamicModule[{points = {}}, EventHandler[Dynamic[points], {"LeftArrowKeyDown" :> ( AppendTo[ points, {RandomInteger[{-25, 25}], RandomInteger[{-25, 25}]}] ), "RightArrowKeyDown" :> ( Drop[points] )}]] The goal is to add an element to the "points" list whenever LeftArrow is pressed, and remove its last element whenever RightArrow is pressed. Everything is fine with adding elements, but nothing happens when I try to drop. Any ideas?