JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" onkeydown="myFunction(event);">
JavaScript
function myFunction(event) {
//keyCode for B = 66
if(event.keyCode == 66 && event.shiftKey) {
//Your Code
alert();
}
}