Press key - Simulate ESC on the keyboard

Good afternoon, I am trying to use the keyword Press Keys to simulate the ESC on the keyboard but I am not having success. I am not finding the correct format or document for which the keyword works or if in my case this would be the best use.
My case: In my automation, at the end of my test case the google chrome automatic printing screen is displayed, automatic printing of an invoice. However, I am unable to interact with this screen by clicking on cancel (since it is from the browser) and I cannot simply simulate the ESC for its closing. Could you help me with the best way for this issue?