I have a C# windowed application running and I want to close it when I press ESC from anywhere, even when my application does not have focus. How can I implement this?

I found some hook up keyboard which is Low Level Control I have no idea and don't understand.