Added keyboard support for paste upload dialog

Added support for <esc> and <enter> on the preview dialog for pasting images

* ESC: closes the dialog and stopping upload
* ENTER: uploads the file and closes dialog

Also focus to the chat box after closing.