Moving Character within a moving ship or similar

Thanks for this very good and explaining answer - I understood and try to adapt.