2015 Audi A3 - Acting oddly

When turning off car with key, blinking lights and panic sound and moonroof tilts. Key battery is new.

Have you checked with a different key?

The BCM controls those functions.

Tester