added a new example that demonstrates nonblocking key input.