KeyDown listener stops working

Changing visibility of button stops KeyDownlistener to work