Define a global minor mode for a consistent key handling.