Berdych qualifies if he wins his next match against Anderson (11-0)
Kei qualifies if he wins his next match against Ferrer (4-3).
Ferrer qualifies if he performs at an equal or better level than Milos.
Milos qualifies if he can go one level further than Ferrer.
This does not tell the whole story, as there are other weird situations.