1, react to add event listener listens keyboard events
reference:
Code check box confirm the record: