it depends on which version of actionscript you are using as far as specifics go, but generically, you have mouse events and you have keyboard events. You 'listen' for specific events types and respond to them in kind. For mouse events, one usually checks either the position of the mouse or whether a specific object was clicked and responds accordingly. For keyboard events, we can check to see which key was pressed and provide code for certain keys under certain conditions. (e.g. key combinations with control or alt).