Use proc instead of lambda in Action.shortcut