quick cut-and-paste on mouse and key events