How to verify a specific key in a custom keyboard?

Hi,

Our application uses a custom keyboard and some of the keys from the vanilla keyboard are changed when the custom keyboard is presented. Is anyone know an approach to verify if shown custom keyboards contain a specific key I want to verify?

Thanks