domready(function() {
	var UP = "up";
	var DOWN = "down";
	var current = 0;
	var height = document.body.clientHeight;
	var number = document.querySelectorAll('body > section').length;
	var running = false;
	var duration = parseFloat(getComputedStyle(document.body).transitionDuration) * 1000;

	function slide(direction) {
		if (running) {
			return;
		}
		running = true;

		if (direction == UP) {
			current--;
		} else if (direction == DOWN) {
			current++;
		}

		current = current % number;
		if (current < 0) {
			current += number;
		}
		
		document.body.style.transform = 'translateY(' + (current * -height) + 'px)';

		setTimeout(function() {
			running = false;
		}, duration);
	}

	window.addEventListener('wheel', function(event) {
		if(event.deltaY > 0) {
			slide(DOWN);
		} else {
			slide(UP);
		}
	});

	window.addEventListener('keypress', function(event) {
		switch (event.keyCode) {
			case 38:
				slide(UP);
				break;
			case 40:
				slide(DOWN);
				break;
		}
		event.preventDefault();
		return false;
	});

	window.addEventListener('resize', function() {
		setHeight();
		slide();
	});
});

@@ -922,16 +922,44 @@
 de(UP);%0A
+%09%09%09%09event.preventDefault();%0A
 %09%09%09%09brea
@@ -996,21 +996,8 @@
 ;%0A%09%09
-%09%09break;%0A%09%09%7D%0A
 %09%09ev
@@ -1024,21 +1024,20 @@
 ;%0A%09%09
-return false;
+%09%09break;%0A%09%09%7D
 %0A%09%7D)

Fix the cancelled key bug