Hi SUJAYS,
Use KeyEventArgs KeyboardDevice.IsKeyDown method to check the Key type.
if (sender is KeyEventArgs args)
{
if(!args.KeyboardDevice.IsKeyDown(Key.Tab))
{
}
}
Reference:
https://stackoverflow.com/questions/24953480/how-to-fire-an-event-when-the-tab-key-is-pressed-in-wpf-c