Keyboard Press Detection Functionality

I’m trying to get flash to recognize ctrl+z and ctrl+y for redo and undo functionality, though the detection is cut short when i hold the ctrl button first it prints out 17 but when i hit the z it just kills the capture. how would i trap all keys?

//17 ctrl,z 90
//17 ctrl,y 89