hide a field in webform components
The webform_civicrm module does this (actually it disables it rather than hiding it)

You can see the relevant code here (note this function runs in the context of hook_form_alter).

You could hide it by doing something similar but setting $form['form_key']['#type'] = 'hidden';