WIP support for key/mouse events in examples.