I guess it depends on how you use it. I tried it with keypressed also and it didn't work. I tried this online and my results was fine.
NPC Code:
//#CLIENTSIDE
if ( playerenters || timeout ) {
if ( keydown2(17,true) )
setplayerprop #c,true;
timeout = 0.05;
}