Keyboard Responses on iPad

This is an exploratory question.

I am looking to adapt some tasks built in Psychopy and currently running on Pavlovia, to be specifically run on Pavlovia using iPads.

Currently some experiments have keyboard responses and I am looking for the best way to translate these to an iPad environment.

It would not be appropriate to allow the virtual keyboard to appear during the experiment so I was wondering if either a compatible apple magic keyboard or a generic bluetooth keyboard would be a good route to go in terms of response time accuracy and general compatibility with an experiment being run on Pavlovia.

How would keyboard responses normally be handled when an experiment is being run on an iPad?

Thank you

Anthony

I have created an on screen keyboard for a digit span task, but I am therefore not trying to use the entire alphabet.
https://run.pavlovia.org/brookes/digit-span/