New commands: lock, unlock, send_to_background, bring_to_foreground