| left-click | move to clicked location without pushing boxes |
|---|---|
| right/meta-click | push box to clicked location |
or h | move left |
or j | move down |
or k | move up |
or l | move right |
| u or middle-click | undo last move |
| r | redo undone move |
If you're an X-Sokoban player, the controls for SokoBean are almost identical, except dragging boxes is currently not supported, and the meanings of the middle and right buttons have been swapped.
To control the tractor with the keyboard, you can use the arrow keys. You can also use the Vi arrow keys, ie: "h", "j", "k" and "l". If you don't know which one to use for what, I suggest you just stick to using the arrow keys. :-)
You can undo a move by pressing "u", and you can press "r" to "redo" an undone move.
Clicking somewhere with the left button will cause the tractor to take an optimal path to get there, if there is a way to get there without pushing any boxes. (An optimal path is a shortest path) Clicking with the middle button will undo.
Clicking on a box that is adjacent to the tractor with the right mouse-button will cause the tractor to push that box. Right-clicking on an empty cell will cause the tractor to push a "sensible" box into that cell. A "sensible" box is a box that is horizontal or vertical from that cell, with nothing (no other boxes, walls, or the tractor) in-between, and which the tractor can actually get behind to push. If there are multiple "sensible" boxes, the one closest to the tractor is selected. Note that if SokoBean is unsure about what you want it to do, it will (silently) ignore you.
There are also "Undo", "Redo", "Reset Level", and "Reset Game" buttons, which should have fairly obvious functions. Note that if you reset the game or the level you cannot undo it.
Finally, if you've only got one or two buttons on your mouse, the right button can be simulated by pressing the "Meta" key while clicking the left button (which I think is the "option" key on a Mac. I'd appreciate feedback indicating what works on the Mac). The middle button can be simulated by pressing the "Alt" key while clicking the left button (though it's probably a lot easier to just press the "U" key).