Simple key code handling for node command line tools.