I would like to know whether Keyboard open or not in my web page . So i want to check active element whether it is input and then if it is input of [type='text'], [type= 'passowrd'] etc? Is there a better way to build this logic or any defauult API to fetch this?