Hmmm - it might be easier to simply use the development version from this thread -:
Most devices send event 0 to close and the current binding doesn’t really allow this to be selected. If you use the new binding it should work ok as the notification class is heavily rewritten.