On this page
What this issue is
Many people never use a mouse. They use the keyboard, a switch device, voice control or a screen reader, all of which depend on keyboard-style input. A form passes when every field and button can be reached with Tab (and Shift+Tab to go back), and operated with Space, Enter and the arrow keys. This maps to WCAG 2.1.1 Keyboard (level A), which is part of WCAG 2.2.
Why it costs you leads or sales
A visitor who gets stuck on one field can't submit, and they rarely tell you. They leave. Because the form looks fine to you with a mouse, the problem can sit unnoticed for months. It also affects power users who tab through forms for speed, and it is a legal and procurement risk where accessibility rules apply.
- Open pagePage loads, form is visible
- Name and emailTab reaches both fields
- Custom dropdownTab skips it or Enter does nothing
- Submit buttonNever reached
- Lead in CRMNo lead created
The visitor tabs through the form but can't reach or operate the custom dropdown, so the submit never happens.
Example: illustrative numbers showing how a broken dropdown can block every keyboard-only visitor while mouse users still complete the form.
How to check if your site has it
Put the mouse away
Open the page with the form. Click once in the address bar area or on blank page space, then use only the keyboard.
Press Tab through the form
Every field, checkbox, dropdown and button should receive focus in a logical order. Note anything that is skipped.
Operate each control
Type in text fields, use arrow keys on selects and radio buttons, press Space on checkboxes, and open any date picker or dropdown with Enter or Space.
Submit with Enter or Space
Focus the submit button and press Enter or Space. Confirm the success message or thank-you page appears.
Look for a visible focus indicator
You should always see where focus is. If not, see the related focus outline issue.
Check in DevTools
Search the form's HTML for tabindex="-1", div or span elements with click handlers, and inputs hidden with display:none. Browser accessibility tools such as Lighthouse or axe DevTools can also flag some of these.
| Control | Keys that should work |
|---|---|
| Text field | Tab to focus, type |
| Checkbox | Space to toggle |
| Radio group | Arrow keys to change, Tab to leave group |
| Select dropdown | Arrow keys, Enter or Space to open |
| Button | Enter and Space |
| Custom dropdown or date picker | Enter or Space to open, arrows to move, Esc to close |
How to fix it
The best fix is to use native HTML controls and style them, instead of rebuilding them from generic elements. Where you must keep a custom widget, give it a role, focus and key handling.
Broken
- A div with a click handler acts as the submit button
- Tab skips it
- Enter and Space do nothing
Fixed
- A real button element with type=submit
- Tab reaches it
- Enter and Space submit the form
<!-- Broken -->
<div class="btn" onclick="submitForm()">Send</div>
<!-- Fixed -->
<button type="submit" class="btn">Send</button>.visually-hidden-input {
position: absolute;
opacity: 0;
width: 1px;
height: 1px;
}
/* Do not use display:none or visibility:hidden on the real input */
.visually-hidden-input:focus-visible + .custom-box {
outline: 2px solid #1a56db;
outline-offset: 2px;
}Identify the form plugin
Test the form with the keyboard. If only one field type fails (for example a date picker or styled select), check the plugin's settings for a custom or modern field option and switch to the standard field.
Disable the add-on or script causing it
Temporarily turn off styling add-ons or custom JavaScript for the form, retest, and re-enable one at a time to find the culprit.
Update plugin and theme
Update the form plugin and theme, then retest. If the issue remains, report it to the vendor with your test steps.
Test in the theme editor preview
Check the contact, newsletter and cart forms. Native theme forms are usually keyboard friendly.
Look for custom Liquid or app widgets
Under Online Store > Themes > Edit code, search for tabindex="-1" and clickable divs in the form snippet. Replace them with button or input elements.
Check third-party apps
Disable app embeds one at a time under Customize > App embeds to find which one breaks keyboard use.
Check injected forms
If a Custom HTML tag injects a form or popup, test it with the keyboard. Inject real form elements, not clickable divs.
Review scripts that hide fields
Look for tags that set display:none on inputs or add tabindex="-1", and change them.
Use native form elements
Build the form with the Form Block, Input, Select and Submit Button elements rather than Div Blocks with click interactions.
Check custom checkboxes
Keep the built-in checkbox and radio elements. Style them with the custom control classes rather than hiding the input.
Review Tab Index settings
In the element Settings panel, make sure Tab Index is not set to -1 on form fields.
Test the form or survey in preview
Use only the keyboard on the published page, not just the builder.
Replace custom elements
If a button is built from a generic element with a link or click action, use the standard Submit button element of the form instead.
Remove custom code that hides fields
Check custom CSS and JavaScript for display:none on inputs and tabindex="-1".
Use Wix form elements
Use the Wix Forms app or standard input, dropdown and submit button elements, then test with the keyboard.
Check tab order
In the editor, turn on Dev Mode or use the Tab Order option to confirm every field is included.
Avoid image or box buttons
Replace boxes or images with click actions by real buttons.
Test the Form block
Squarespace Form blocks are generally keyboard friendly. Test them on the live page.
Check Code Injection
Under Settings > Advanced > Code Injection, look for scripts that restyle or hide form fields.
Replace fake buttons
Use a Button block or the form's own submit button, not a clickable image or Code block element.
Use semantic elements
Use input, select, textarea and button. Avoid tabindex values above 0.
Add keyboard handling to custom widgets
Give it a role (for example role="combobox" or "listbox"), tabindex="0", and handle Enter, Space, arrows and Escape.
Use a tested library where possible
Prefer an accessible select or date picker component over building your own.
How to confirm it's fixed
- Tab reaches every field and the submit button in a logical order
- Shift+Tab moves backwards through the same order
- Every dropdown, date picker and checkbox works with the keyboard
- Pressing Enter or Space on the submit button sends the form
- The success message or thank-you page appears
- Focus is always visible
- A test lead arrives in your inbox or CRM
- Retested on mobile browsers with an external keyboard if relevant
How to prevent it happening again
- Add a keyboard-only test to your release checklist for any form change
- Prefer native HTML controls over custom widgets
- Run Lighthouse or axe DevTools on pages with forms after theme, plugin or page builder updates
- Retest after installing popups, chat widgets or cookie banners that overlay forms
- Ask designers to specify focus states and keyboard behaviour for any custom component
How FunnelGuard handles this
FunnelGuard does not check this yet. Keyboard-only operation is a possible future check, but today it is not part of the service.
What FunnelGuard does do is run your real form journey with a robot visitor on a schedule, from the EU or the US. It checks each step, the tracking hits sent to ad and analytics platforms, and whether the test lead reaches the inbox and CRM. If a form breaks for everyone, for example the submit button no longer works or the lead never arrives, a failure is re-checked from a second region and one alert is sent with a screenshot and a likely cause. That covers outright breakage, not whether a person using only a keyboard can complete the form.
Questions people ask
Why can't I tab to a field in my form?
The field is probably removed from the tab order. Common causes are tabindex="-1" on the input, the input hidden with display:none or visibility:hidden, or a custom control built from a div. Use a native input and remove the negative tabindex.
How do I test if my form works with keyboard only?
Use Tab and Shift+Tab to move through every field, Space and arrow keys to operate checkboxes, radios and dropdowns, and Enter or Space on the submit button. If you can complete and submit the form without touching the mouse, and can always see where focus is, it passes.
Why does the Enter key not submit my form?
Enter submits a form when it sits inside a form element that has a real submit button. If the button is a div or a button with type="button", or JavaScript blocks the default action, nothing is sent. Use a button with type="submit" inside the form.
Is keyboard accessibility for forms a legal requirement?
WCAG 2.1.1 Keyboard is a level A criterion in WCAG 2.2, and many accessibility laws and standards refer to WCAG. Whether it legally applies depends on your country and sector, so check with a qualified adviser. It is also simply good for conversions.
Why is my custom dropdown not working with the keyboard?
Dropdowns built from lists or divs don't get keyboard behaviour automatically. Either use a native select element, or add a role, tabindex="0" and handlers for Enter, Space, arrow keys and Escape. A tested accessible component is usually safer.
Does tabindex="0" fix a div button?
Only partly. It lets the div receive focus, but it still won't respond to Enter or Space unless you add key handlers and a role of button. Replacing it with a real button element is simpler and more reliable.
Does FunnelGuard check keyboard accessibility of forms?
No, not yet. It is a possible future check. FunnelGuard does run your form journey on a schedule and checks that the steps, tracking and test lead still work, but you need to test keyboard use manually or with a tool like Lighthouse or axe.
Related issues
- PRF-311Focus outline removed (outline:none)Fix guide
- PRF-312Keyboard trap in modal or widgetFix guide
- PRF-314Illogical focus orderFix guide
- PRF-322Buttons made from divs without role/keyboard supportFix guide
- PRF-305Form inputs without labels (placeholder only)Fix guide
- PRF-316Focused element hidden behind sticky header (WCAG 2.4.11)Fix guide