src/js/libs/spiritual-gui.js
function(key) {
		gui.Spirit.prototype.onkey.call(this, key);
		console.log(key.type);
		var map = this._map;
		map[key.type] = key.down;
		if (Object.keys(map).every(function(type) {
			//console.log ( type + ": " + map [ type ]);
			return map[type] === true;
		})) {
			console.log("fis!");
		}

	}
function(key) {
		gui.Spirit.prototype.onkey.call(this, key);
		console.log(key.type);
		var map = this._map;
		map[key.type] = key.down;
		if (Object.keys(map).every(function(type) {
			//console.log ( type + ": " + map [ type ]);
			return map[type] === true;
		})) {
			console.log("fis!");
		}

	}
function ( key ) { gui . Spirit . prototype . onkey . call ( this , key ) ; console . log ( key . type ) ; var map = this . _map ; map [ key . type ] = key . down ; if ( Object . keys ( map ) . every ( function ( type ) { //console.log ( type + ": " + map [ type ]); return map [ type ] === true ; } ) ) { console . log ( "fis!" ) ; } }
Handle key.
@param {gui.Key} key
Handle key .