It might do that when you go backwards in an infinite tunnel (if you turn around you can see the gnome there too), when you stumble backwards into the gnome. The gnome will always try to move when you move or pick up stuff, but not always when you turn