Molecule(320, 320, function (game, require) {
    
    // Enable keyboard
    game.input.enable('keyboard');
    
    game.init(function () {
        
    });
    
    game.update(function () {
    
        // Check if Key A has been pressed
        if(game.input.key.A) {
            console.log('Key A has been pressed');
        }
        
        // Check if Key Up Arrow has been pressed
        if(game.input.key.UP_ARROW) {
            console.log('Key Up Arrow has been pressed');
        }
        
        // Check if Key Space has been pressed
        if(game.input.key.SPACE) {
            console.log('Key Space has been pressed');
        }
        
        // Check if Key P has not been pressed
        if(!game.input.key.P) {
            console.log('Key P has not been pressed');
        } else {
            console.log('Key P has been pressed');
        }

    });

});
@@ -6,171 +6,178 @@
 ule(
-320, 320, function (game, require) %7B%0A    %0A    // Enable keyboard%0A    game.input.enable('keyboard');%0A    %0A    game.init(function () %7B%0A        %0A    %7D);%0A    %0A    game
+%7B%0A    width: 320,%0A    height: 320%0A%7D)%0A.sprite('flappy', 'assets/flappy.png', 32, 24)%0A.init(function (game) %7B%0A%0A    // Enable keyboard%0A    game.input.enable('keyboard');%0A%7D)%0A
 .upd
@@ -194,21 +194,17 @@
 on (
-) %7B%0A    %0A    
+game) %7B%0A%0A
     
@@ -234,34 +234,31 @@
 een pressed%0A
-    
     if
+ 
 (game.input.
@@ -262,28 +262,24 @@
 ut.key.A) %7B%0A
-    
         cons
@@ -317,35 +317,19 @@
 ');%0A    
-    %7D%0A        %0A    
+%7D%0A%0A
     // C
@@ -362,34 +362,31 @@
 een pressed%0A
-    
     if
+ 
 (game.input.
@@ -397,28 +397,24 @@
 UP_ARROW) %7B%0A
-    
         cons
@@ -459,35 +459,19 @@
 ');%0A    
-    
 %7D%0A
-        %0A    
+%0A
     // C
@@ -505,26 +505,23 @@
 pressed%0A
-    
     if
+ 
 (game.in
@@ -533,28 +533,24 @@
 ey.SPACE) %7B%0A
-    
         cons
@@ -596,27 +596,11 @@
     
-    %7D%0A        %0A    
+%7D%0A%0A
     
@@ -642,18 +642,15 @@
 sed%0A
-    
     if
+ 
 (!ga
@@ -667,36 +667,32 @@
 ey.P) %7B%0A        
-    
 console.log('Key
@@ -714,28 +714,24 @@
  pressed');%0A
-    
     %7D else %7B
@@ -735,28 +735,24 @@
 e %7B%0A        
-    
 console.log(
@@ -786,23 +786,11 @@
     
-    %7D%0A%0A    %7D);%0A%0A%7D);
+%7D%0A%0A%7D);%0A

Update game.js