Cartoon Movie: Boy Opens Forbidden Door with Key, Releases Evil Black Goo Capturing Father – The Last Unicorn (1982)
The film is The Last Unicorn (1982). The protagonist Schmendrick uses a magical key to open a forbidden door, releasing the Red Bull (evil black goo creature) which captures his father at a grand ball.