key, motion and gesture event handling interface implemented

Signed-off-by: Wayne Wolf <wayne.ron.wu@googlemail>