About external keyboards

If you connect an external keyboard (e.g. via Bluetooth) to a touchscreen-based device (e.g. SurfaceGo, Chromebook, iPad), key input will not be captured properly.
Input.GetKey(KeyCode.UpArrow)
The ON/OFF status of a specific key cannot be detected using methods such as this.
Inputting strings using the UI’s InputField is fine.
Also, after inputting a string using that method, you may be able to make a determination using Input.GetKey().
Are there any steps I need to initialize before using an external keyboard?

P.S. The platform is WebGL and accessed from each device using a browser.