<test style="position:absolute; left:0;top:0;">картинка</test>
<script>
var block = document.getElementsByTagName('test')[0];
var left1 = 0;
document.onkeydown = function (event) {
console.log(event);
if (event.key == 'ArrowRight') {
block.style.left = left1+'px';
left1 ++;
}
};
</script>