addEventListener("keyup", (event)=> { if (event.key === 'ArrowUp') { // do Something }else if (event.key === 'ArrowDown') { // do Something } });