Flash 4 scripting part 3 - using key events
the sample:
use your arrow keys to move the plane. you will have to click on the swf file first to activate it.