Run the attached example and clicking in the middle of the screen it brings up a virtual keyboard. Then try to type with the Wacom pen.
- top left blue button works
- using finger works
The problem can be that the pen reports many move events between pressed and released event and that may cancel the press.