$.keys.released( key)

Returns a boolean value if the key just came up

  • key : string //

Examples



function update() {
	$.text.alignment.x = "center";
	$.text.alignment.y = "center";
	$.text.size=20;
	if($.keys.released("a")){
		$.text.print($.w/2,$.h/2,"a");
	}
}