Skip to content
Back to skills

Keyboard Navigation

ASecurity

Keyboard accessibility, focus management, and shortcuts.

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 7, 2026
data-aibashtestingfrontend

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill keyboard-navigation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Keyboard Navigation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Keyboard Navigation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-keyboard-navigation/badge)](https://www.skillsdirectory.com/skills/a5c-ai-keyboard-navigation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: keyboard-navigation
description: Keyboard accessibility, focus management, and shortcuts.
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
graph:
  domains: [domain:web-development]
  specializations: [specialization:web-development]
  skillAreas: [skill-area:web-accessibility, skill-area:accessibility-testing]
  roles: [role:frontend-engineer, role:qa-engineer]
  topics: [topic:accessibility]

---

# Keyboard Navigation Skill

Expert assistance for keyboard accessibility.

## Capabilities

- Implement keyboard navigation
- Manage focus
- Create keyboard shortcuts
- Handle focus trapping
- Test keyboard access

## Focus Management

```tsx
// Focus trap for modals
function useFocusTrap(ref: RefObject<HTMLElement>) {
  useEffect(() => {
    const element = ref.current;
    if (!element) return;

    const focusableElements = element.querySelectorAll(
      'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
    );
    const first = focusableElements[0];
    const last = focusableElements[focusableElements.length - 1];

    function handleKeyDown(e: KeyboardEvent) {
      if (e.key === 'Tab') {
        if (e.shiftKey && document.activeElement === first) {
          e.preventDefault();
          last.focus();
        } else if (!e.shiftKey && document.activeElement === last) {
          e.preventDefault();
          first.focus();
        }
      }
    }

    element.addEventListener('keydown', handleKeyDown);
    return () => element.removeEventListener('keydown', handleKeyDown);
  }, [ref]);
}
```

## Target Processes

- keyboard-accessibility
- focus-management
- accessibility-implementation

Files in this skill

  • README.md309 B
  • SKILL.md1.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.