It will only play correctly if you press the same key that is set as the base note (white thingie above the keyboard in the sampler window). Also make sure the master transpose on the top toolbar is set to 0, otherwise your loop will get transposed accordingly. You can disable this behavior with a setting on the rightmost tab of the instrument.