add code to check window property change related with keypad state