How to do character movements on a moving plane?

Walk around a moving boat (Rolls, and yaws in the waves)