updated key event demo, now performs some drawing when arrow keys are pressed