If the keyboard of a terminal is defined as type mgmt then the lock command cannot be specified.
lock
Recovery
rtrv-trm