Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Your solution also works on a 2012 MacBook Pro. I only had to modify the call to the 'dump' routing to search for "Internal Keyboard". For some reason, I needed to execute the program a couple of times for it to take due to some intermittent bug, but I now have a functioning keyboard, and can use emacs once again.