Added an error message to the openFirst method

If you don’t pass a type to the openFirst method it will now throw an
error if an xkeys device is plugged in.