added keyboard control to demo 07