You are correct, they do, via the official keyboard/trackpad case. Or you can even just connect any other bluetooth keyboard+trackpad (including the dedicated magic keyboard+trackpad for macs). And most of the keyboard+trackpad shortcuts/gestures are already the same on both macOS and iPadOS