ch 7- add keydown event to view point example