Adding support for android key events.

Fixes #4163