Keypress listener and initial focus