Left mouse button - select the block state key you want to change.Right mouse button - change the selected state (for chests, furnaces, etc., use shift + right-click).
To obtain the Debug Stick, place a stick in any crafting window.