Hi Tony,
I had the same problem - and fixed it.
To fix the problem, you have to hold down one of the four buttons and let the moon roof complete a cycle through opening, closing, tilting up, tilting down. Once it has completed a full cycle it will reset itself to the operation stated in the manual.
I had the same problem after picking up my car last week. After speaking with my salesman, he told me the above - and it worked. My moonroof now works brilliantly.
The sales man told me that when the car gets it's pre-delivery check items such as these are checked. What can happen during the life of the car, is that the battery may have been disconnected and the moon roof looses it memory, and needs to be reset.
If the button pressing does not work, my sales man suggested quickly nipping back to the dealership, and they would do it for me.
I hope this helps.
Alan.