event.which

For key or mouse events, this property indicates the specific key or button that was pressed.