Creates a new KeyTracker instance by subscribing to the provided KeyEvents object.
The source of the key events to listen to.