Keyboard ios osx help

Hi,

I’m developing iOS app (iphone/ipad). cocos2d ver. 3.3.
I want to simulate it, but instead of taps (mouse clicks) can I enable mac keyboard input? Is it possible?

I followed this guide [Tutorial] How to get multi-platform keyboard events! but didn’t work for me.