Preventing the backspace key from moving to the previous page