Missing events module in sdk\deprecated

Our extension worked well in FF 39 but failed in FF 40+, because FF has removed “events” module in deprecated. However I see this module still being used somewhere in FF SDK although it is removed, is it reasonable to remove?

Someone used this module to handle tool bar button in long time ago and now it is removed. So I wonder which module I could use to do the same functionality.

Please advise.

Do you mean these?
https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/system_events

https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/event_core

If you’re adding a button to the toolbar, consider https://developer.mozilla.org/en-US/Add-ons/SDK/Tutorials/Adding_a_Button_to_the_Toolbar

Thank you for all. I am researching on your suggestions.