working keyboard events for specific view controllers by using first responder