Fix prevent keyboard presses