Added code to allow for addition of key trap handlers - which are
invoked when a given key is pressed.
Upgraded JLine - added performance check while handling key traps.