Removing use of deprecated UIKeyboardBoundsUserInfoKey.
Checking orientation to make sure the correct value from the keyboard size is being used.