listen for keyboard events on view will appear.