The text I want to format is:

> ...  that Alt Gr + `  gives | ...

into
 
>  ... that <kbd>Alt Gr</kbd>+<kbd>\`</kbd> gives `|` ...

What I did was using `<kbd>` and enclose " | " with  " ` " but when code formatting character is involved, it gets messy as above. How do I escape the format?