# Keyboard Press Detection Functionality

**URL:** <https://forum.kirupa.com/t/keyboard-press-detection-functionality/290119>\
**Category:** flash\
**Created:** [June 10, 2009, 1:12am UTC](https://forum.kirupa.com/t/keyboard-press-detection-functionality/290119 "2009-06-10T01:12:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bnns](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bnns](https://forum.kirupa.com/u/bnns)\
**Post date:** [June 10, 2009, 1:12am UTC](https://forum.kirupa.com/t/keyboard-press-detection-functionality/290119/1 "2009-06-10T01:12:40Z")

</div>

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
