There is a key on my keyboard which I do not want to do anything. By default when I press it I get a message in my mini-buffer reading
<cancel> is not defined. I want to silence that message.
I successfully achieved that with:
(define-key global-map (kbd "<cancel>") (lambda () (interactive)))
But wanted to know if there is a more semantic way of achieving this.