You may also use this sort of function to
disable certain keys, by adding a void(0) in the function as shown.
This essentially tells the page to cancel the last event,
e.g. the pressing of that certain key. In the example below,
the key that is disabled is the enter key.