Updated keyboard dismiss gestures to avoid UIKit controls