e.which is not an event, which is a property of the event object, which most people label as e in their event handlers. It contains the key code of the key which was pressed to trigger the event (eg: keydown, keyup).
http://api.jquery.com/event.which/
You should read this documentation. You will find your answer