New to Telerik UI for BlazorStart a free 30-day trial

Wizard Keyboard Navigation

Updated on Jul 16, 2026

This article describes how the Wizard keyboard navigation works and how to customize it. The article extends the general information about keyboard navigation in Telerik UI for Blazor.

The Wizard is a single tab stop component and its keyboard navigation is active while the component's Stepper is focused.

Default Keys

The following sections list the default built-in keyboard shortcuts and the actions that they perform when the Wizard Stepper is focused. Also check the Wizard Keyboard Navigation demo.

Key CombinationDescription
ArrowRight, ArrowDownMoves to the next step.
ArrowLeft, ArrowUpMoves to the previous step.
HomeMoves to the first step.
EndMoves to the last step.

Using Custom Keys

The Wizard supports replacing the default built-in keyboard shortcuts or adding new ones that perform the same actions.

To override the built-in Wizard keyboard shortcuts, you need to create a Dictionary<string, WizardKeyboardCommand?>> that defines:

Set the Dictionary to the Wizard CustomKeyboardShortcuts parameter.

Setting custom WizardKeyboardCommand keyboard shortcuts

RAZOR
<TelerikWizard CustomKeyboardShortcuts="@WizardCustomKeyboardShortcuts" />

@code {
    private Dictionary<string, WizardKeyboardCommand?> WizardCustomKeyboardShortcuts => new()
    {
        { "Enter", WizardKeyboardCommand.NavigateToNextStep }
    };
}

Keyboard Command

The WizardKeyboardCommand enum represents a user action, for example, NavigateToNextStep.

You can define multiple keyboard shortcuts that execute the same keyboard command. If a Wizard keyboard command has no custom key, the component uses the default key. To disable a built-in keyboard command for a specific key, use null.

Example

The following sample shows how to:

  • Disable ArrowUp and ArrowDown and only use ArrowRight and ArrowLeft for nevigating to the next and previous step.
  • Disable Home and End, so that there is no way to jump to the first or last step.
<TelerikWizard @bind-Value="@WizardValue"
               CustomKeyboardShortcuts="@WizardCustomKeyboardShortcuts">
    <WizardSteps>
        <WizardStep Label="Start" Icon="@SvgIcon.Home">
            <Content>
                <p>Welcome to the Wizard!</p>
            </Content>
        </WizardStep>
        <WizardStep Label="Survey" Icon="@SvgIcon.Pencil">
            <Content>
                <p>The user is performing some actions...</p>
            </Content>
        </WizardStep>
        <WizardStep Label="Finish" Icon="@SvgIcon.Check">
            <Content>
                <p>Thank you!</p>
            </Content>
        </WizardStep>
    </WizardSteps>
</TelerikWizard>

@code {
    private int WizardValue { get; set; }

    private Dictionary<string, WizardKeyboardCommand?> WizardCustomKeyboardShortcuts => new()
    {
        { "ArrowRight", WizardKeyboardCommand.NavigateToNextStep },
        { "ArrowLeft", WizardKeyboardCommand.NavigateToPreviousStep },
        { "Home", null },
        { "End", null }
    };
}

See Also