exit with certain values on certain keypresses

enables a script to catch it and launch the program again with another
channel!
Merge branch 'master' of github.com:FruitieX/jsii