Trigger button state via keyboard press

Hi all,

Is there a way to trigger a buttonState for example the upState via actionscript?

I tried this but it seems not to work?


			
                        two_btn.addEventListener(MouseEvent.MOUSE_OVER,testEvent);
			stage.addEventListener(KeyboardEvent.KEY_DOWN, testkeys);
			
                        private function testkeys(event:Event):void {
				
     			two_btn.dispatchEvent(new MouseEvent(MouseEvent.MOUSE_OVER));
     			
				trace("keypress received");

			}
			
			private function testEvent(event:Event):void {
				
				trace("button two clicked");
			}
			

I tried to dispatch a mouse event on the button but it seems to be it does not
work very well…

What I would like to have is something like:

two.btn.setState( “upstate”) on a keyboard press?

Is this possible with the simpleButton Class?

Thx