Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <script src=""></script> 
<div class="keyboardbg">
        <input name="" id="inputbox">
        <div tabindex="0" id="keyboardBase" class="keyboard-base">
            <div data='192' class="key inkey">~</div>
            <div data='49' class="key inkey">1</div>
            <div data='50' class="key inkey">2</div>
            <div data='51' class="key inkey">3</div>
            <div data='52' class="key inkey">4</div>
            <div data='53' class="key inkey">5</div>
            <div data='54' class="key inkey">6</div>
            <div data='55' class="key inkey">7</div>
            <div data='56' class="key inkey">8</div>
            <div data='57' class="key inkey">9</div>
            <div data='48' class="key inkey">0</div>
            <div data='189' class="key inkey">-</div>
            <div data='187' class="key inkey">+</div>
            <div data='8' class="key delete">Backspace</div>
            <div data='9' class="key tab">Tab</div>
            <div data='81' class="key inkey">Q</div>
            <div data='87' class="key inkey">w</div>
            <div data='69' class="key inkey">E</div>
            <div data='82' class="key inkey">R</div>
            <div data='84' class="key inkey">T</div>
            <div data='89' class="key inkey">Y</div>
            <div data='85' class="key inkey">U</div>
            <div data='73' class="key inkey">I</div>
            <div data='79' class="key inkey">O</div>
            <div data='80' class="key inkey">P</div>
            <div data='219' class="key inkey">[</div>
            <div data='221' class="key inkey">]</div>
            <div data='220' class="key inkey backslash">\</div>
            <div data='20' class="key capslock">CapsLock</div>
            <div data='65' class="key inkey">A</div>
            <div data='83' class="key inkey">S</div>
            <div data='68' class="key inkey ">D</div>
            <div data='70' class="key inkey ">F</div>
            <div data='71' class="key inkey ">G</div>
            <div data='72' class="key inkey ">H</div>
            <div data='74' class="key inkey ">J</div>
            <div data='75' class="key inkey ">K</div>
            <div data='76' class="key inkey ">L</div>
            <div data='186' class="key inkey ">;</div>
            <div data='222' class="key inkey ">'</div>
            <div data='13' class="key return">Enter</div>
            <div data='16' class="key leftshift">Shift</div>
            <div data='90' class="key inkey ">Z</div>
            <div data='88' class="key inkey ">X</div>
            <div data='67' class="key inkey ">C</div>
            <div data='86' class="key inkey ">V</div>
            <div data='66' class="key inkey ">B</div>
            <div data='78' class="key inkey ">N</div>
            <div data='77' class="key inkey ">M</div>
            <div data='188' class="key inkey ">,</div>
            <div data='190' class="key inkey ">.</div>
            <div data='191' class="key inkey ">/</div>
            <div data='16' class="key rightshift">Shift</div>
            <div data='17' class="key leftctrl">Ctrl</div>
            <div data='18' class="key">Alt</div>
            <div data='90' class="key command">Command</div>
            <div data='32' class="key inkey  space">Space</div>
            <div data='90' class="key command">command</div>
            <div data='18' class="key">Alt</div>
            <div data='17' class="key">Ctrl</div>
            <div data='0' class="key">Fn</div>


                 .keyboardbg {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 740px;
            padding: 10px;
            height: 100px;
            border-radius: 15px;
            margin-bottom: 20px;

        .keyboard-base {
            background: rgb(29, 48, 57);
            border-radius: 10px;
            max-height: 225px;
            width: 745px;
            padding: 10px;
            border-radius: 12px;
            display: grid;
            grid-template-columns: repeat(30, 20px);
            grid-template-rows: repeat(5, 38px);
            grid-gap: 5px;

        .key {
            background-color: rgb(1, 3, 29);
            border: 2px solid #00ffc4;
            border-radius: 5px;
            grid-column: span 2;
            font-size: 16px;
            text-align: center;
            padding-top: 10px;
            color: #b6d7f4;
            box-shadow: 1px 1x 10px #57eafd;


        .key:hover {
            border: 1px solid #8900ff;
            box-shadow: 1px 1x 10px #8900ff;

        .delete {
            grid-column: span 4;

        .tab {
            grid-column: span 3;

        .backslash {
            grid-column: span 3;

        .capslock {
            grid-column: span 4;

        .return {
            grid-column: span 4;

        .leftshift {
            grid-column: span 5;

        .rightshift {
            grid-column: span 5;

        .leftctrl {
            grid-column: span 3;

        .command {
            grid-column: span 3;
            font-size: 14px;

        .space {
            grid-column: span 13;


                   $(document).ready(function () {
            window.onload = function() {
            let input = $("#inputbox").focus();
            $('#keyboardBase').ready(function () {
                    opacity: '1'
                $(this).on('keydown', function (event) {
                    let keys = $('.key');
                    let unicode = event.keyCode; //return unicode on keydown
                    for (let i = 0; i < keys.length; i++) {
                        if (keys[i].getAttribute('data') == unicode) {
                                'background: #39EC8B; border-color: #7d14ac; color: #141A73'
                        } else {
                                'background: #041226; transition: all 0.3s')
                        setTimeout(function () {
                                'background: #041226; transition: all 0.3s')
                        }, 1000)
            $('#keyboardBase').on('blur', function () {
                let keys = $('.key');
                for (let i = 0; i < keys.length; i++) {
                    keys[i].setAttribute('style', 'background: #041226; transition: all 0.3s');