Registering for keyboard events on sp-textarea

Here is a similar topic.
How to know if a dialog is closed with AltKey