added keyboard events to CCLayer