DRY'd out focusInput