Why isn't Maptiler Terrain working?

Trying to add Maptiler terrain to my project. I followed their instructions exactly, but all I’m getting is a blank starfield? Here’s my code:


You should be able to see the error if you check your browser console. It looks like the URL or API key may be incorrect.