With the Simulator App open, navigate to the menu bar and select I/O > Keyboard, then uncheck "Connect Hardware Keyboard".
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: