react-haiku
react-haiku copied to clipboard
[FEAT] Create Hook - useKeyPress()
Description A hook that detects when a specific key or combination of keys is pressed.
Acceptance Criteria
- [ ] Single Key Detection: Triggers a callback when a specified key is pressed.
- [ ] Combination Key Detection: Supports detecting combinations of keys (e.g., Ctrl + C).
- [ ] Event Cleanup: Ensures event listeners are removed when the component is unmounted.