/** * Hook that detects when a specific key is pressed * * @param targetKey - The key to detect (e.g., 'Enter', 'Escape', 'a') * @param handler - Function to call when key is pressed * @param options - Options for key press handling * * @example * ```tsx * const Component = () => { * useKeyPress('Escape', () => { * console.log('Escape pressed'); * }); * return