You can customize the function of the menu key as you wish.
Here's how to customize the menu key on Xiaomi Redmi Note 5A Prime:
Step 1: Go to additional settings.
.jpg)
Step 2: Choose shortcuts and gestures.

Step 3: Customize the menu key based on the feature you desire.

That completes the setup, wishing you all success.
