improvements to touch and keyboard events