update highlighting on keydown