prevent scrolling upon pressing space bar