title: Assign shortcut keys to input button using jQuery
body: <pre><code>&lt;html&gt;
  &lt;script&gt;
  $('#pasteButton').click( function() {
  
    // place code for this button
    // ctrl + v shortcut should work for this button
    // how?
    }
  
  });
  
  &lt;/script&gt;
  &lt;body&gt;
      &lt;input type=&quot;button&quot; id=&quot;pasteButton&quot; value=&quot;Paste&quot; /&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>Thanks in advance. Similarly, I also need to cut / copy selected text from a textarea using buttons.</p>
  <p><em>update from comment section :
  I have a text area where I select some text and if I click on pasteButton that selected text need to be pasted in my text area</em></p>