var el = document.getElementById("textarea")
el.addEventListener("keydown", (e)=>{
if(e.key === "Enter"){
// do something here
}
})
document.body.addEventListener("keydown", function (e) {
switch (e.key) {
case ' ':
flappyBird.velocity.y = -jumpPower
break
case 'Enter':
if(!gameStarted){
gameStarted = true
render()
}
break
default:
break
}
})