how do i register the KeyListener to an object? an example in code would
be of much help