# Prevent Arrow Keys from Changing NumericTextBox Value

## Environment

<table>
    <tbody>
        <tr>
            <td>Product Version</td>
            <td>14.2.1</td>
        </tr>
        <tr>
            <td>Product</td>
            <td>Progress® KendoReact NumericTextBox</td>
        </tr>
    </tbody>
</table>

## Description

I want to prevent the ArrowUp and ArrowDown keys from increasing or decreasing the value in the NumericTextBox. Using `stopPropagation` in `onKeyDownCapture` blocks the event from reaching a parent `onKeyDown` handler (for example, on a wrapping `<td>`), which is not desirable.

## Solution

Intercept the value update inside the [`onChange`](https://www.telerik.com/kendo-react-ui/components/inputs/api/numerictextboxprops#onChange) handler. Check whether the change was triggered by an arrow key or mouse wheel event and, if so, skip the state update. This approach blocks the value change without calling `stopPropagation`, so the parent `onKeyDown` handler still fires normally.

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/inputs/numerictextbox-prevent-arrow-key-value-change/source.txt)

## See Also

* [KendoReact NumericTextBox](https://www.telerik.com/kendo-react-ui/components/inputs/numerictextbox)
* [API Reference of the NumericTextBox](https://www.telerik.com/kendo-react-ui/components/inputs/api/numerictextboxprops)
