text: function e(e){return e.toLowerCase().replace(/^arrow/,"").replace(/(^\s$)|spacebar/,"space")}function n({target:n=window,renameKeys:t=!0,enableRepeat:r=!1,onKeyDown:o=(()=>{}),onKeyUp:a=(()=>{})}={}){const d=new Set,s=new Set;function i({key:n,code:a,repeat:i}){const c=t?e(n):n;i&&!r||(d.add(c),s.add(a),o({key:c,code:a,repeat:i}))}function c({key:n,code:r}){const o=t?e(n):n;d.delete(o),s.delete(r),a({key:o,code:r})}function w(){d.clear(),s.clear()}return n.addEventListener("keydown",i),n.addEventListener("keyup",c),n.addEventListener("blur",w),n!==window&&window.addEventListener("blur",w),{stop(){n.removeEventListener("keydown",i),n.removeEventListener("keyup",c),n.removeEventListener("blur",w),n!==window&&window.removeEventListener("blur",w)},getKey:e=>d.has(e),getCode:e=>s.has(e)}}var t={normalizeKeyName:e,start:n};export default t;export{e as normalizeKeyName,n as start};
  //# sourceMappingURL=kaybee.js.map
  