Added Home and End key support to UITextInput
Calculate word wrap only if width changed on resize
Prevented scrollbars from going past limits