use R key to toggle random or sequential mode