If (keyboardIsDisplayed)?

Hello,

I want to display a button when the keyboard is displayed, is this possible?

You can use native plugin for Keyboard.
Show your button when keyboard opens with this and hide when keyboard get close with this.