<input type="text" oninput="myFunction(event)" id="i">
function myFunction(event){
console.log(event); //can i find the keycode using this event?
}
document.getElementById('i').addEventListener("keypress", (e) => {
console.log(e.which)});
Sorry for the beginner question guys but can I use the event in the myFunction to see the keycode press as I did by adding the event listener to the element bellow.