Mouse and keyboard events working more smoothly together.