def validate_defaults(self, defaults):
    super().validate_defaults(defaults)
    assert (defaults.keys() <= {'humanReadableName', 'onScreenPosition', 'keys'}), 'there were extra items in defaults'
    assert ('keys' in defaults)
    assert_keycode_list(defaults['keys'])
def validate_defaults(self, defaults):
    super().validate_defaults(defaults)
    assert (defaults.keys() <= {'humanReadableName', 'onScreenPosition', 'keys'}), 'there were extra items in defaults'
    assert ('keys' in defaults)
    assert_keycode_list(defaults['keys'])