This page lists the example on how to enter IO Retention / Partial IO low power mode on console key press and then wakeup on pin activity on MCU UART pins.