The keydata values here are the key names, event types, and time entry.
此处的按键数据值包括键名、事件类型和时间条目。
2
This trivial example checks whether an entry already exists with the current key before writing new data, in order to avoid an exception that would occur if data with this key already existed.