Switch form focus to focusout, this allows the focus to stay if the cursor leaves the table, though it will commit the change and refocus