make pressing space bar adhere to settings