RAVE-1272 | Check the type of the event to determine if it was a key pre...

...ss or a click instead of only relying on "which".