function keyPressHandler(event) {
        if (!isAcceptableEvent(event)) {
            return;
        }

        switch (event.code) {
            case 'Space':
                event.preventDefault();
                break;
        }
    }
/**
     * Receive all key event and prevent default behavior on some of there
     * @param {KeyboardEvent} event
     */
Receive all key event and prevent default behavior on some of there
@param {KeyboardEvent} event
Receive all key event and prevent default behavior on some of there @param { KeyboardEvent } event
function keyPressHandler(event) {
        if (!isAcceptableEvent(event)) {
            return;
        }
        switch (event.code) {
            case 'Space':
                event.preventDefault();
                break;
        }
    }
function keyPressHandler ( event ) { if ( ! isAcceptableEvent ( event ) ) { return ; } switch ( event . code ) { case 'Space' : event . preventDefault ( ) ; break ; } }
Receive all key event and prevent default behavior on some of there
 @param {KeyboardEvent} event
Receive all key event and prevent default behavior on some of there @param { KeyboardEvent } event