This is how far I got so far!!
var keyChar = String.fromCharCode(window.event.keyCode);
if (keyChar == 'N'||keyChar == 'n')
//output 2 images 10 pixels either side of the cursor (either on x or y axes)