Positioning buttons on modals – should it be consistent at ALL times?

I am currently designing an application for iPad.

I have illustrated the situation below:Problem of the type of image

The screen on the left is the current version that seems to work very well when the user does not have to use the keyboard or if there are only one or two text fields (the modal window is short enough for the keyboard "button).

Currently, when the keyboard overlaps the window (middle image), I move the "Create" button in the upper right corner so that the main button is not obstructed.

  • Should I change the middle version of the image to the right one in
    in order to be consistent?
  • Is there another solution to my problem?

Hi and sorry for the bad english;)