Fix several bugs preventing keycode fields from being used in option tables.

Fix required handlers not being attached to keycode fields add after
the panel is drawn.
Fix a new 'keydown' hander being attached to window after every time a
keycode field is focused.
Fixed fields in new table rows not having properly named id fields.
Focus keycode focus/blur events are now delegated instead of attaching
a new handler every time.