Detect keyup keydown left/right in term