Click to drag gates, use the arrow keys to rotate gates. Press D or click the trash can to toggle delete mode, then click to delete gates. Click on gates that have switches on them to toggle the switch. Press P to pause, editing while paused can cause inconsistencies. Press C to draw wire connections. Press X to change the scale. Scaling up with gates on the screen is not recommended. Press L to load a save code. Press S to generate a save code.
https://en.wikipedia.org/wiki/Logic_gate