A native menu's Cmd+Z and Shift+Cmd+Z, made while the OS window of a floating panel or a floating toolbar has the keys and none of its text fields is focused, undo and redo once each.