added prevent default, because space bar would move the page down, and we do not want that