# CTRL+P problem

**URL:** <https://forum.kirupa.com/t/ctrl-p-problem/241018>\
**Category:** flash\
**Created:** [October 9, 2007, 1:45pm UTC](https://forum.kirupa.com/t/ctrl-p-problem/241018 "2007-10-09T13:45:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noface](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@noface](https://forum.kirupa.com/u/noface)\
**Post date:** [October 9, 2007, 1:45pm UTC](https://forum.kirupa.com/t/ctrl-p-problem/241018/1 "2007-10-09T13:45:06Z")

</div>

so, i have this code:

```auto

var keyObj:Object = new Object();
keyObj.onKeyDown = function() {
 if (Key.getCode() == 80) {
        /////////////////
  var pj = new PrintJob();
var success = pj.start(); 
if(success)
{ pj.addPage (0, {xMin : 0, xMax: 1, yMin: 0, yMax: 1});            
pj.send(); } 
delete pj;
  //////////////////
    }
  //trace(Key.getCode());
}
Key.addListener(keyObj);

```

which essentialy prints a blank page for a user.  
my trouble is that, if I press “P” -defined by ascii=80, all is good, but if i press CTRL+P (as most will do by default), the routine doesn’t work anymore.  
Been trying to replace 80 with 16, as i found in some ascii charts but to no avail…  
any suggestions?
