Override ALT + S keyboard shortcut for Rich Text Editor submission

I want to prevent submission of comment based on the content of the TinyMCE text entry area. I have been able to achieve that for adding a new comment but not for editing comments - is there any way to achieve this? does anyone know how JIRA binds the ALT + S key stroke listener? can you provide pointer to the source code where the binding of the handler is happening?