ActionScript to detect unit select and hotkeys

I have a couple of questions related to Flash AS3 UIs:

  1. Is it possible to fire a game event when some unit is selected? Example: Select an NPC -> Show Quest UI

  2. How can I catch one particular hotkey without interfering with the rest of the game? Example: F9 questlog

  3. Is there a better way to offer more than 6 abilities than the 5 abilities+swap system? For example, an extra 6 ability bar with hotkeys

The concept of Modding Community doesn't go well together with Competitive Business
My Project Page || My GitHub Profile ||