Other information:
Hyundai Accent (HC) (2017 - 2022) Service Manual: Sunroof
If your vehicle is equipped with a sunroof, you can slide or tilt your sunroof with the sunroof switch located on the overhead console. In your Hyundai Accent, always make sure the opening is clear before operating the sunroof or sunshade.
The sunroof can only be operated when the ignition switch is in the ON position.
The sunroof can be operated for approximately 30 seconds after the ignition switch is in the ACC or LOCK position.