Web pages like games need to be able to customize their user input based for touch or keyboard, so need to be able to feature-detect the presence of a hardware keyboard. This currently isn't possible.
https://twitter.com/firt/status/1136652889655521280
<rdar://problem/51529802>