Here's a list of all commands, in the form they are parsed by the
bindkey option, with their default key and a short explanation
(where necessary).

CMD_NO_CMD_DEFAULT can be used to bind any key to the "Unknown command."

Movement
--------
Moving one grid into a given direction:
b, NP1, End    CMD_MOVE_DOWN_LEFT
h, NP4, Left   CMD_MOVE_LEFT
j, NP2, Down   CMD_MOVE_DOWN
k, NP8, Up     CMD_MOVE_UP
l, NP6, Right  CMD_MOVE_RIGHT
n, NP3, PgDn   CMD_MOVE_DOWN_RIGHT
u, NP9, PgUp   CMD_MOVE_UP_RIGHT
y, NP7, Home   CMD_MOVE_UP_LEFT

Moving into a given direction until interrupted:
B, Shift+End   CMD_RUN_DOWN_LEFT
H, Shift+Left  CMD_RUN_LEFT
J, Shift+Down  CMD_RUN_DOWN
K, Shift+Up    CMD_RUN_UP
L, Shift+Right CMD_RUN_RIGHT
N, Shift+PgDn  CMD_RUN_DOWN_RIGHT
U, Shift+PgUp  CMD_RUN_UP_RIGHT
Y, Shift+Home  CMD_RUN_UP_LEFT

Attacking in a given direction without moving:
^B, ^End       CMD_ATTACK_DOWN_LEFT
^H, ^Left      CMD_ATTACK_LEFT
^J, ^Down      CMD_ATTACK_DOWN
^K, ^Up        CMD_ATTACK_UP
^L, ^Right     CMD_ATTACK_RIGHT
^N, ^PgDn      CMD_ATTACK_DOWN_RIGHT
^U, ^PgUp      CMD_ATTACK_UP_RIGHT
^Y, ^Home      CMD_ATTACK_UP_LEFT

Autofight commands:
Tab            CMD_AUTOFIGHT        (attack with/fire primary weapon)
Shift+Tab, p   CMD_AUTOFIRE         (fire from quiver)
<unbound>      CMD_AUTOFIGHT_NOMOVE (fire from quiver at range, attack with
                                     primary weapon in melee range)

Quivers
-------
f         CMD_FIRE
Q         CMD_QUIVER_ITEM
(         CMD_CYCLE_QUIVER_FORWARD
)         CMD_CYCLE_QUIVER_BACKWARD
]         CMD_SWAP_QUIVER_RECENT

Inventory management
--------------------
c         CMD_UNEQUIP
d         CMD_DROP
D         CMD_DROP_LAST
e         CMD_EQUIP
g, ,      CMD_PICKUP
i         CMD_DISPLAY_INVENTORY
q         CMD_QUAFF
r         CMD_READ
V         CMD_EVOKE
v         CMD_PRIMARY_ATTACK
w         CMD_WIELD_WEAPON
F         CMD_FIRE_ITEM_NO_QUIVER
M         CMD_MEMORISE_SPELL
P         CMD_WEAR_JEWELLERY
R         CMD_REMOVE_JEWELLERY
T         CMD_REMOVE_ARMOUR
W         CMD_WEAR_ARMOUR
=         CMD_ADJUST_INVENTORY
{         CMD_INSCRIBE_ITEM
'         CMD_WEAPON_SWAP

Dungeon interaction
-------------------
o         CMD_EXPLORE
s, ., NP. CMD_WAIT
5, NP5    CMD_REST             (rest 100 turns)
t         CMD_SHOUT
x         CMD_LOOK_AROUND
X         CMD_DISPLAY_MAP
^X        CMD_FULL_VIEW
|         CMD_SHOW_TERRAIN
z         CMD_CAST_SPELL
Z         CMD_FORCE_CAST_SPELL
C         CMD_CLOSE_DOOR
^F        CMD_SEARCH_STASHES
G, ^G     CMD_INTERLEVEL_TRAVEL
O         CMD_OPEN_DOOR
^W        CMD_FIX_WAYPOINT
<         CMD_GO_UPSTAIRS
>         CMD_GO_DOWNSTAIRS
;         CMD_INSPECT_FLOOR
!         CMD_ANNOTATE_LEVEL

Player status
-------------
a         CMD_USE_ABILITY
m         CMD_DISPLAY_SKILLS
A         CMD_DISPLAY_MUTATIONS
E         CMD_EXPERIENCE_CHECK
I         CMD_DISPLAY_SPELLS
^O        CMD_DISPLAY_OVERMAP
^P        CMD_REPLAY_MESSAGES
@         CMD_DISPLAY_CHARACTER_STATUS
%         CMD_RESISTS_SCREEN
^         CMD_DISPLAY_RELIGION
"         CMD_LIST_JEWELLERY
[         CMD_LIST_ARMOUR
$         CMD_LIST_GOLD
\         CMD_DISPLAY_KNOWN_OBJECTS
}         CMD_DISPLAY_RUNES
#         CMD_CHARACTER_DUMP

Meta-commands
-------------
F1, ~     CMD_GAME_MENU
^A        CMD_TOGGLE_AUTOPICKUP
^C        CMD_CLEAR_MAP
^E        CMD_MACRO_ADD
^D        CMD_MACRO_MENU
<unbound> CMD_TOGGLE_SOUND      (only when compiled with sound)
^Q        CMD_QUIT
^R        CMD_REDRAW_SCREEN
S         CMD_SAVE_GAME
^S        CMD_SAVE_GAME_NOW
^Z        CMD_SUSPEND_GAME
&         CMD_WIZARD            (issuing wiz-mode commands)
+         CMD_EXPLORE_MODE
:         CMD_MAKE_NOTE
_         CMD_READ_MESSAGES     (messaging during online play)
?         CMD_DISPLAY_COMMANDS
`         CMD_PREV_CMD_AGAIN
0, Insert CMD_REPEAT_CMD
<unbound> CMD_LUA_CONSOLE

Targeting sub-commands
----------------------
Move cursor one step in a given direction:
b, NP1, End    CMD_TARGET_DOWN_LEFT
h, NP4, Left   CMD_TARGET_LEFT
j, NP2, Down   CMD_TARGET_DOWN
k, NP8, Up     CMD_TARGET_UP
l, NP6, Right  CMD_TARGET_RIGHT
n, NP3, PgDn   CMD_TARGET_DOWN_RIGHT
u, NP9, PgUp   CMD_TARGET_UP_RIGHT
y, NP7, Home   CMD_TARGET_UP_LEFT

Shoot in a given direction:
B, Shift+End   CMD_TARGET_DIR_DOWN_LEFT
H, Shift+Left  CMD_TARGET_DIR_LEFT
J, Shift+Down  CMD_TARGET_DIR_DOWN
K, Shift+Up    CMD_TARGET_DIR_UP
L, Shift+Right CMD_TARGET_DIR_RIGHT
N, Shift+PgDn  CMD_TARGET_DIR_DOWN_RIGHT
U, Shift+PgUp  CMD_TARGET_DIR_UP_RIGHT
Y, Shift+Home  CMD_TARGET_DIR_UP_LEFT

x, Esc, ^G     CMD_TARGET_CANCEL
v              CMD_TARGET_DESCRIBE
^X             CMD_TARGET_FULL_DESCRIBE
e              CMD_TARGET_EXCLUDE
?              CMD_TARGET_HELP
SPACE, Enter, NPenter, 5, NP5, f
               CMD_TARGET_SELECT
!              CMD_TARGET_SELECT_FORCE
., NP.         CMD_TARGET_SELECT_ENDPOINT
@              CMD_TARGET_SELECT_FORCE_ENDPOINT
:              CMD_TARGET_TOGGLE_BEAM
Tab, \         CMD_TARGET_FIND_PORTAL
^              CMD_TARGET_FIND_TRAP
_              CMD_TARGET_FIND_ALTAR
<              CMD_TARGET_FIND_UPSTAIR
>              CMD_TARGET_FIND_DOWNSTAIR
r              CMD_TARGET_FIND_YOU
g              CMD_TARGET_GET
-, NP-         CMD_TARGET_CYCLE_BACK,
+, =, NP+, NP= CMD_TARGET_CYCLE_FORWARD
/, NP/, ;      CMD_TARGET_OBJ_CYCLE_BACK
*, ', NP*      CMD_TARGET_OBJ_CYCLE_FORWARD
)              CMD_TARGET_CYCLE_QUIVER_FORWARD  (fire interface only)
(              CMD_TARGET_CYCLE_QUIVER_BACKWARD (fire interface only)
Q              CMD_TARGET_SELECT_ACTION         (fire interface only)

Level-map commands
------------------
?         CMD_MAP_HELP
^C        CMD_MAP_CLEAR_MAP
^F        CMD_MAP_FORGET
^U        CMD_MAP_UNFORGET
^W, w     CMD_MAP_ADD_WAYPOINT
e         CMD_MAP_EXCLUDE_AREA (cycle through radii and toggle off/on)
^E        CMD_MAP_CLEAR_EXCLUDES
+, NP+    CMD_MAP_SCROLL_DOWN
-, NP-    CMD_MAP_SCROLL_UP
., ,, ;, S, Enter, NPenter, NP.
          CMD_MAP_GOTO_TARGET
!         CMD_MAP_ANNOTATE_LEVEL
R         CMD_MAP_EXCLUDE_RADIUS
[         CMD_MAP_PREV_LEVEL
]         CMD_MAP_NEXT_LEVEL
G         CMD_MAP_GOTO_LEVEL
o         CMD_MAP_EXPLORE
v         CMD_MAP_DESCRIBE
}         CMD_MAP_ZOOM_IN      (tiles only)
{         CMD_MAP_ZOOM_OUT     (tiles only)
Esc       CMD_MAP_EXIT_MAP

Move cursor one step in a given direction
b, NP1, End    CMD_MAP_MOVE_DOWN_LEFT
h, NP4, Left   CMD_MAP_MOVE_LEFT
j, NP2, Down   CMD_MAP_MOVE_DOWN
k, NP8, Up     CMD_MAP_MOVE_UP
l, NP6, Right  CMD_MAP_MOVE_RIGHT
n, NP3, PgDn   CMD_MAP_MOVE_DOWN_RIGHT
u, NP9, PgUp   CMD_MAP_MOVE_UP_RIGHT
y, NP7, Home   CMD_MAP_MOVE_UP_LEFT

Move cursor several steps in a given direction
B, Shift+End   CMD_MAP_JUMP_DOWN_LEFT
H, Shift+Left  CMD_MAP_JUMP_LEFT
J, Shift+Down  CMD_MAP_JUMP_DOWN
K, Shift+Up    CMD_MAP_JUMP_UP
L, Shift+Right CMD_MAP_JUMP_RIGHT
N, Shift+PgDn  CMD_MAP_JUMP_DOWN_RIGHT
U, Shift+PgUp  CMD_MAP_JUMP_UP_RIGHT
Y, Shift+Home  CMD_MAP_JUMP_UP_LEFT

Find a particular feature
<         CMD_MAP_FIND_UPSTAIR
>         CMD_MAP_FIND_DOWNSTAIR
@         CMD_MAP_FIND_YOU
Tab, \    CMD_MAP_FIND_PORTAL
^         CMD_MAP_FIND_TRAP
_         CMD_MAP_FIND_ALTAR
E         CMD_MAP_FIND_EXCLUDED
F, W      CMD_MAP_FIND_WAYPOINT
I, '      CMD_MAP_FIND_STASH
O         CMD_MAP_FIND_STASH_REVERSE (cycle through stashes, in reverse)

Player doll editor (local tiles only)
-------------------------------------
-              CMD_EDIT_PLAYER_TILE
^R             CMD_DOLL_RANDOMIZE
H, Shift+Left  CMD_DOLL_SELECT_PREV_DOLL
L, Shift+Right CMD_DOLL_SELECT_NEXT_DOLL
k, NP8, Up     CMD_DOLL_SELECT_PREV_PART
j, NP2, Down   CMD_DOLL_SELECT_NEXT_PART
h, NP4, Left   CMD_DOLL_CHANGE_PART_PREV
l, NP6, Right  CMD_DOLL_CHANGE_PART_NEXT
Enter, NPenter CMD_DOLL_CONFIRM_CHOICE
^C             CMD_DOLL_COPY
^V             CMD_DOLL_PASTE
t              CMD_DOLL_TAKE_OFF
^T             CMD_DOLL_TAKE_OFF_ALL
*              CMD_DOLL_TOGGLE_EQUIP
^E             CMD_DOLL_TOGGLE_EQUIP_ALL
^D             CMD_DOLL_JOB_DEFAULT
m              CMD_DOLL_CHANGE_MODE
Esc, ^S        CMD_DOLL_SAVE
q ^Q           CMD_DOLL_QUIT

Wiz-mode targeting sub-commands
-------------------------------
^C        CMD_TARGET_CYCLE_BEAM
o         CMD_TARGET_WIZARD_GIVE_ITEM
m         CMD_TARGET_WIZARD_MOVE
s         CMD_TARGET_WIZARD_MAKE_SHOUT
w         CMD_TARGET_WIZARD_PATHFIND
F         CMD_TARGET_WIZARD_MAKE_FRIENDLY
P         CMD_TARGET_WIZARD_BLESS_MONSTER
G         CMD_TARGET_WIZARD_GAIN_LEVEL
M         CMD_TARGET_WIZARD_MISCAST
S         CMD_TARGET_WIZARD_MAKE_SUMMONED
~         CMD_TARGET_WIZARD_POLYMORPH
D         CMD_TARGET_WIZARD_DEBUG_MONSTER
^H        CMD_TARGET_WIZARD_HEAL_MONSTER
,         CMD_TARGET_WIZARD_HURT_MONSTER
"         CMD_TARGET_WIZARD_DEBUG_PORTAL
^B        CMD_TARGET_WIZARD_BANISH_MONSTER
^K        CMD_TARGET_WIZARD_KILL_MONSTER
^F        CMD_TARGET_WIZARD_CREATE_MIMIC
T         CMD_MAP_WIZARD_TELEPORT
^X        CMD_MAP_WIZARD_FORGET
