Added TPKeyboadAvoiding code from https://github.com/michaeltyson/TPKeyboardAvoiding