added focus on keypress