Changed demo app. Added key input handling as well as special keys handling.