Using only external display with a macbook
I'm trying to use an external display with a macbook 2017 with the lid closed, but when I close the lid the macbook goes to sleep and the external monitor disconnects. Nothing happens clicking an external keyboard. What can I do to use an external display with the lid down on the laptop.
MacBook, macOS 11.2