Q:

How to detect if the A,S,D or/and W button is pressed in cocos2d-mac?

I want to move my ccsprite/b2body with the W,A,S,D keys in cocos2d for mac. How can I detect if one of these buttons are pressed? Can the user press multiplie keys at simultaneous? Can cocos2d for mac handle multiplie keys when they are pressed?
Thank you very much

A:

Check this out:

Cocos2d handling events (it detects none, one, or several keys pressed at the same time)
Find Key Codes For Your Mac Keyboard

