fixed basic functionality of the view receiving key presses