Pressing and holding a key down, now updates the code box and caret div