added support for moving between words with control and searching history with page up and down