# Simulate Key Press

**URL:** <https://forum.kirupa.com/t/simulate-key-press/235546>\
**Category:** flash\
**Created:** [August 12, 2007, 4:49pm UTC](https://forum.kirupa.com/t/simulate-key-press/235546 "2007-08-12T16:49:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Templarian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/templarian/32/7152_2.png) [@Templarian](https://forum.kirupa.com/u/Templarian)\
**Post date:** [August 12, 2007, 4:49pm UTC](https://forum.kirupa.com/t/simulate-key-press/235546/1 "2007-08-12T16:49:01Z")

</div>

how do i simulate that i key has been pressed. I know theres a better way to say this, but I’ve searched for about a half an hour and am completely stuck at what else to search for.  
Sort of like… I hope theres an easy way/possible way.  
pushKeyUp(keyCode);  
pushKeyDown(keyCode);
