Is there a way to check if key board is email type or number type

is there a way to check if key board is email type or number type?

i think you can try release key not exist on keyboard and check if exist or no by set it between try catch statement