ArrayList - having different images when moving using arrow keys

if i wanted to do it for a class which doesnt use keypressed()
how would I do that?

eg have an object that moves on its own.
would that be inside the object’s class in void move()