Is it possible to detect when the "@123" is pressed on the keyboard? I have a custom input accessory view that I want to change depending what keyboard is shown to the user.

Is it possible to detect when the "@123" is pressed on the keyboard? I have a custom input accessory view that I want to change depending what keyboard is shown to the user.

 
    
    To quote from the following link
You can register for the UITextInputCurrentInputModeDidChangeNotification to be alerted when the current input mode changes."
[[NSNotificationCenter defaultCenter] addObserver:self
                                     selector:@selector(inputModeDidChange:)
                                         name:UIKeyboardCurrentInputModeDidChangeNotification
                                       object:nil];
and
- (void)inputModeDidChange:(NSNotification*)notification
{
    id obj = [notification object];
    if ([obj respondsToSelector:@selector(inputModeLastUsedPreference)]) {
    id mode = [obj performSelector:@selector(inputModeLastUsedPreference)];
        NSLog(@"mode: %@", mode);
    }
}
Possible duplicate, have you looked at
this post (Detecting current iPhone input language) or this post (how to detect when the iOS default keyboard type switches from text to numbers)