Go to System Preferences -> Keyboard -> Modifier Keys and than set Option to No Action
1.to disable the internal keyboard.
sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/
2. to enable the internal keyboard
sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext/