more work on clipboard example
improved text mapping in keyboard events