Added boolean for isKeyboardShown