Keydown event

Is there a way to listen for a keydown event.
I want to build a game that uses the keyboard on android to control the game.

There are some android devices with custom buttons so I would like the event to provide the keycode or similar of the key pressed.

Is this available?
[import]uid: 9301 topic_id: 16318 reply_id: 316318[/import]