fix tab bug and Command Caps sensitive.