Fix spacebar causing page to scroll due to key event being moved to keyup