Hands using a computer keyboard in close-up

Keyboard Navigation and Data Entry

by William Hudson • • 26 min read

214 Shares
Save

Forms are an essential part of many interactions, but good form layout and clear labels are only part of the picture. Forms also need to work in all the ways users interact with them. Not everyone uses a mouse. Many users rely on keyboards, whether by preference, motor impairments, or because they use assistive technologies such as screen readers. How a form handles keyboard navigation, action buttons, and data entry has a direct impact on both usability and accessibility compliance.

In the video, William Hudson explores the interaction side of form design: how users move through forms, how primary and secondary actions should be distinguished, and why flexible input handling is one of the simplest and most effective improvements you can make.

Transcript

Primary and Secondary Actions

Every form has a primary action (such as submitting an order or saving changes) and secondary actions (such as editing an address or applying a discount code). These need to be visually distinct. William uses the Amazon checkout as a good example: the primary "Place your order" button is large and brightly colored, while secondary links are deliberately smaller and less prominent. This visual hierarchy reduces the chance of users accidentally clicking the wrong thing.

For complex, multi-step forms, William recommends removing all other page navigation to prevent users from accidentally abandoning the process. This is backed by the WCAG, which requires that important transactions (such as financial or legal submissions) include a summary page where users can review and correct their entries before final submission.

Keyboard Accessibility

Keyboard navigation is essential for accessibility. Many users, including those with motor impairments and those using assistive technologies, rely on the keyboard (or simulated keyboard input) rather than a mouse or touchscreen. The tab key is the primary way these users move between form fields, so the correct tab order is critical. If pressing Tab sends the cursor to an unexpected location, users can become disoriented or miss fields entirely. This is especially true for screen readers, where only the field label is read out.

William also emphasizes minimizing unnecessary switching between the keyboard and the mouse. If a user is typing, keep them typing. Drop-down lists, for example, often require a mouse click when a simple text field with suggestions would be faster and more accessible. (Card, Moran, and Newell's Keystroke Level Model associates a "homing" cost of about 0.4 seconds every time users have to switch from one input device to another.)

Flexible Input Handling

One of the most important principles in the video is this: treat user input as valuable and be flexible in how you interpret it. If someone types a credit card number with spaces, strip the spaces rather than throwing an error. If they include a currency symbol or other "spurious" punctuation in a payment field, ignore it rather than rejecting the input. The cost of writing a single line of code to clean up formatting is far less than the cost of confusing or frustrating users. Yet poorly designed forms routinely reject perfectly valid input because it does not match an overly rigid expected format.

Note that AI-generated form code often ships with overly strict client-side validation, which is exactly the rigidity this section warns against. As with much of AI-generated material, it is a starting point, but it's up to you to ensure that users' needs are met.

Modern Form Features

Since this video was recorded, HTML has introduced features that reinforce many of these principles. The autocomplete attribute is now a WCAG requirement (Success Criterion 1.3.5, Identify Input Purpose). By adding autocomplete tokens to form fields (for example, autocomplete="email" or autocomplete="street-address"), you enable browsers to pre-fill fields with stored user data. This helps everyone, but it is especially valuable for users with cognitive disabilities or motor impairments who find typing slow or difficult.

Inline validation (checking input as the user types or moves between fields, rather than waiting until they press Submit) is now standard practice. When done well, it catches errors early and lets users correct them in context. However, it must be implemented carefully: validating too aggressively (for example, showing an error before the user has finished typing) can be more annoying than helpful.

There is now a further reason to mark up forms properly. AI agents are increasingly used to complete forms on a user's behalf, and they depend on the same signals as assistive technology: correctly associated labels, autocomplete tokens, and a logical field order. A form that a screen reader can navigate is usually one that an agent can fill reliably. Forms that rely solely on visual layout, with placeholder text standing in for real labels, or on custom controls that lack proper roles, tend to defeat both.

The Take Away

  • Make primary actions obvious: Use visual hierarchy to distinguish the main action (such as "Submit" or "Place order") from secondary operations. For important transactions, provide a summary page before final submission, as required by WCAG.

  • Design for keyboard users: Ensure correct tab order, minimize forced switches between keyboard and mouse, and prefer text fields with suggestions over drop-down lists where typing would be faster.

  • Be flexible with input: Strip spaces, ignore currency symbols, and accept reasonable variations in formatting rather than rejecting valid input. Write one line of cleanup code rather than a paragraph of error messages.

  • Use autocomplete attributes: The HTML autocomplete attribute is now a WCAG 2.2 requirement for fields collecting user information. It helps all users but is especially beneficial for those with cognitive or motor disabilities.

References and Further Reading

For detailed guidance on using the HTML autocomplete attribute, search for WCAG Success Criterion 1.3.5 (Identify Input Purpose).

For the full list of input purposes that must be programmatically identifiable under WCAG 2.2, search W3C Input Purposes for User Interface Components.

Information on predicting data-entry task times can be found in "Using the Keystroke-Level Model to Estimate Execution Times" by David Kieras. Although published in 1993, it is still relevant today.

Hero image: © Interaction Design Foundation, CC BY-SA 4.0

Learn More in This Course:

Learn Design and AI From the Best

Get one powerful email each week, like 313,180 others.

Next email in:

What You Should Read Next

  • Read full article
    The 7 Factors that Influence User Experience - Article hero image

    The 7 Factors that Influence User Experience

    User Experience (UX) is critical to the success or failure of a product in the market but what do we mean by UX? All too often UX is confused with usability which describes to some extent how easy a product is to use and it is true that UX as a discipline began with usability – however, UX has grown

    Social shares
    1.3k
    Published
    Read Article
  • Read full article
    Occam’s Razor: The simplest solution is always the best - Article hero image

    Occam’s Razor: The simplest solution is always the best

    You may have heard of Occam’s Razor; did you know that you can apply it to web design? When you’ve got it in your “toolbox”, you’ll have an edge in the marketplace.Occam’s Razor, put simply, states: “the simplest solution is almost always the best.” It’s a problem-solving principle arguing that simp

    Social shares
    1.1k
    Published
    Read Article
  • Read full article
    Learn to Create Accessible Websites with the Principles of Universal Design - Article hero image

    Learn to Create Accessible Websites with the Principles of Universal Design

    “Productivity is never an accident. It is always the result of a commitment to excellence, intelligent planning and focused effort.”— Paul J. Meyer, premier international authority on goal setting, motivation, time management, and personal and professional development Accessibility is not t

    Social shares
    1k
    Published
    Read Article
  • Read full article
    Bad UX Exposed: A Comprehensive Guide to Avoiding Pitfalls - Article hero image

    Bad UX Exposed: A Comprehensive Guide to Avoiding Pitfalls

    In today’s vibrant digital design landscape, creating meaningful connections with users goes beyond offering innovative products or services. It leads us into the world of user experience design (or UX design). This critical factor shapes our interaction with the users and plays a big role in making

    Social shares
    974
    Published
    Read Article
  • Read full article
    Understand the Social Needs for Accessibility in UX Design - Article hero image

    Understand the Social Needs for Accessibility in UX Design

    As UX designers, we have a lot on our plates. The term “UX Unicorn” exists for a reason. We are responsible for our clients’ goals as well as our users’ needs. You might ask then, why should you think about Accessibility in your UX Design process?Imagine going into a design workshop and telling your

    Social shares
    938
    Published
    Read Article
  • Read full article
    Accessibility: Usability for all - Article hero image

    Accessibility: Usability for all

    Let’s examine a topic we often take for granted to understand what it’s really about. Doing so, you’ll be able to proceed with a broader appreciation of how users engage your designs.The Overlooked, Misunderstood Nature of Accessibility© WhisperToMe, Public DomainA design is only useful if it’s acce

    Social shares
    932
    Published
    Read Article
  • Read full article
    Your Guide to Hamburger Menus - Article hero image

    Your Guide to Hamburger Menus

    The hamburger menu—with its three horizontal lines—simplifies website navigation. Not every interface benefits from its use, but it can help in certain scenarios. That’s why it’s vital to understand when it shines and when alternatives might serve users better. So, learn the pros and cons of using t

    Social shares
    882
    Published
    Read Article
  • Read full article
    Healthcare UX: Design that Saves Lives - Article hero image

    Healthcare UX: Design that Saves Lives

    UX (user experience) design has the potential to improve people’s everyday lives. The stakes are even higher if you work as a UX designer in the healthcare industry. The health-tech sector is among the fastest-growing in the world, with expected revenue of USD 1,305.1 billion in 2030, according to G

    Social shares
    844
    Published
    Read Article
  • Read full article
    10 Principles of Accessibility - Article hero image

    10 Principles of Accessibility

    Do you want to get serious about accessibility, but finding it hard to know where to start? In this video, we’ll take you through 10 principles you can use to get started creating great accessible websites and interfaces that are digitally inclusive right now. Among other things, you’ll learn how to

    Social shares
    835
    Published
    Read Article
  • Read full article
    What are the Five Elements of UX Design? - Article hero image

    What are the Five Elements of UX Design?

    When you think about user experience design (UX design) and what the ingredients for users to enjoy great experiences are—and so, what you need to think about presenting to them in innovative and delightful ways they can hit the ground running with—does it seem a little overwhelming sometimes? Does

    Social shares
    793
    Published
    Read Article

Top Articles

Top Topic Definitions

39% of Today's Skills Will Change by 2030

The World Economic Forum expects 39% of today's skills to be transformed or become outdated by 2030.

The good news is that jobs in UX / UI design and AI are among the fastest-growing professions globally.

Build Skills That Keep You Relevant

Privacy Settings

By using this site, you accept our Cookie Policy and Terms of Use.
Customize
Accept all

Be the One Who Inspires

People remember who shares great ideas.

Share on:

Academic Credibility — On Autopilot

Don't waste time googling citation formats. Just copy, paste and look legit in seconds.

Learn Design and AI From the Best

Get one powerful email each week, like 313,180 others.

Next email in: