code: def has_key(self, key):
  		
  
  		rc = self._libinput.libinput_device_keyboard_has_key(self._handle, key)
  		assert rc >= 0, 'This device is not a keyboard device'
  		return bool(rc)
docs: Check if a :attr:`~libinput.constant.DeviceCapability.KEYBOARD`
  		device has a given key.
  
  		Args:
  			key (int): Key to check for, see ``input.h`` for key definitions.
  		Returns:
  			bool: :obj:`True` if the device has this key, :obj:`False` if
  			it does not.
  		Raises:
  			AssertionError