forms: Allow getFields() to find field from key

If the form is constructed as a hash array of fields, allow the getField()
method to return the field based on the key of the fields hash array