Exit game without using the Esc key

Hi everybody!
Does anybody know how to exit a game without using the Esc key.
For example, if you press a key, a python script is called and this exits the game.
Thanks! :slight_smile:

import sys

Thank you!

On the same note, is it possible to stop blender from ending the game when the ESC key is pressed? say if you want to use the ESC key for another purpose in the game.