Added retry logic to keyboard entry to work around UIA bug with typeString()