var input = document.querySelector('input')
console.log(input);
document.addEventListener('keyup',e =>{
// console.log(e.keyCode);
if(e.keyCode === 83){
input.focus()
}
})
<input type="text">
var input = document.querySelector('input')
console.log(input);
document.addEventListener('keyup',e =>{
// console.log(e.keyCode);
if(e.keyCode === 83){
input.focus()
}
})
<input type="text">