I am not aware of when this happens, but sometimes, and often, when I go to my inventory I notice my stuff has been rearranged, and I don't want that to happen. I would think that the button R has nothing to do with it since this happens a lot.