I\'m trying to create a commandline remote control in python (running on OSX) that responds to individual key presses. So far, with the help of this old SO I\'ve gotten as