Improves transitions when showing/hiding the keyboard.