$.keys.down( key)

Returns if the key is currently down

  • key : string //

Examples



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