Display a CLOSE button in the iOS Keybord

Hi, i’m trying to display a hardware iOS close button to hide the keyboard. I try this but didn’t work it.

      keyboard.hideFormAccessoryBar(false);

Any workaround? Thanks in advance