A KeyBinding should be appropriate.


Tough to debug without seeing code. Can you boil your 'actual' program down to an SSCCE that replicates the problem?