# Prevent Arrow Keys from Changing the Value in React DateRangePicker

## Environment

<table>
    <tbody>
        <tr>
            <td>Product Version</td>
            <td>10.1.0</td>
        </tr>
        <tr>
            <td>Product</td>
            <td>Progress® KendoReact DateRangePicker</td>
        </tr>
    </tbody>
</table>

## Description

In this guide, you will learn how to prevent the arrow keys from changing the selected value in the DateRangePicker component. This can be useful when you want to restrict the user from modifying the value using arrow keys.

## Solution

To prevent the arrow keys from modifying the selected value in the DateRangePicker, you can add event listeners for the keydown events of the input element and conditionally prevent the default behavior of the arrow keys.

Here is an example implementation:

[Demo Source](https://demos.telerik.com/kendo-react-ui/knowledge-base/dateinputs/daterangepicker-prevent-arrow-keys/source.txt)
