tess 's heart turned upside-down in her chest for a moment , then righted itself and went on beating : he had given his word , a gentleman 's word , that she was free to go ashore whenever she chose .