Grid keyboard improved to work with UITextField and UITextView delegate shouldChangeCharactersInRange method