Handle special cases in keyboard