[vcs] IDEA-67409 Support Home/End keys in the Log.

(cherry picked from commit d8a1d98fe9d4c0df6fa8988b3a17025ddd99d391)
fix a copy paste misprint

(cherry picked from commit 475c2bea3ba434404887d6ff3c6c7b83051462bb)