Thank you for using Apple Support Communities. It's my understanding that after using Xcode Simulator, several of the keys on your MacBook Pro keyboard no longer respond. You've done a great job trying to get this resolved so far. I'm happy to help.
First, I recommend checking the settings below:
macOS Sierra: If keys on your keyboard don't work
Choose Apple menu > System Preferences, click Accessibility, then click Keyboard. Make sure Slow Keys is turned off. If Slow Keys is on, you must hold down a key longer than usual before it’s recognized.
Choose Apple menu > System Preferences, click Accessibility, then click Mouse & Trackpad. Make sure Mouse Keys is off. If Mouse Keys is on, pressing keys in the numeric keypad moves the pointer instead of entering numbers.
Choose Apple menu > System Preferences, click Keyboard, then click Input Sources. Select “Show Input menu in menu bar.” Open the Input menu, then make sure the correct keyboard layout is selected.
To see the keyboard layout, click Keyboard, then choose “Show keyboard and emoji viewers in menu bar.”
If the issue persists, test the issue in safe mode. Starting in safe mode will allow your Mac to run certain checks, remove cache, prevent login items from launching. This can help isolate third party issues. Follow the steps in the link below for assistance with safe mode:
Use safe mode to isolate issues with your Mac
Have a wonderful day!