Warp Box (With Key)
From the Super Mario Wiki, the Mario encyclopedia
Super Mario series
Super Mario 3D World / Super Mario 3D World + Bowser's Fury
Warp Boxes (With Keys) first appear in Super Mario 3D World and return in its port, where they appear in a few levels. In all levels they appear in, the player must collect five Key Coins of an area to turn that area's Warp Box (With Key) into a regular Warp Box.
Super Mario Maker 2
Warp Boxes (With Keys) return in Super Mario Maker 2 exclusively in the Super Mario 3D World style. This time, they may be entered if the player has a Key in their possession. Their object limits are shared with those of regular Warp Boxes.
Captain Toad: Treasure Tracker