Fix animation code for ios7

In ios7 apple uses an undocumented animation curve. When using the block-based animations the translation between curve types doesn't happen properly, and so the keyboard animation is broken.

If we switch to beginAnimation/endAnimation style animations, all is well.

http://stackoverflow.com/a/19236013/1707234