Fix #1188 Swap focusout event for keyup event

Fix typo
Fix #1187 Add client side check on field name validity
Merge pull request #364 from nlegoff/fix_1187

Fix #1187, Fix #1188