How to block keyboard Escape button (esc) action on PEGA modal dialog ?

we have a requirement to restrict user from closing the PEGA modal dialog pop up. However when user clicks on Escape button in keyboard, the modal dialog closes.

Please suggest, how to stop ESC action on modal dialog.

@KSAIP523 Please try to add the below code in UserWorkForm,

<script type="text/javascript"> 

  $("body").on("keydown", function(e){

    if (e.which === 27){

        return false;

    } 

});

</script>

NOTE: This code would restrict ESC key functionality in all the popups in your application.

@Arnab2202 - Thank you so much. It worked.