change method keyboardIsOpened to property keyboardOpened