Add keyDown, arrowKey and functionKey messages to the card

Fix a bug in message sending with string parameters.