Karnagie,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
</head>
<body>
<div class="class" tabindex="0" contenteditable="true" id="elem" role="textbox" aria-multiline="true">keydown enter</div>
<script>
document.getElementById('elem').addEventListener
( "keydown" ,function(e) { console.log(e)
//var chr = getChar(e);
if (e.keyCode === 13) { alert('enter');
//some code
}
},false);
</script>
</body>
</html>