add meta key mask defines
log key events in example program