Here's a video explaining SkiSwitcher2 for Logic Pro X users. It's a utility that connects a key switch to a played note of the score or piano roll.