Fixed FocusEvent types to ones appropriate.
Added basic support for TextField.type="INPUT"
Fixes and corrections for TextField.