<body>
<p>A function is triggered when the user is pressing a key in the input field.</p>
<input type="text" onKeyPress="myFunction()">
<script>
function myFunction() {
alert("You pressed a key inside the input field");
}
</script>
</body>
found this code where in i need to press f12 inside the input box, please let me know if there is any code to automate this (When chrome opens automatically the developer tool should open)