Fix bug in getting active window's title.
Remove unnecessary delay after last key press.