See A-Z of rehabilitation exercises
'Heel slides' are simple early exercises to maintain some active range of movement.
They can be done in bed even while the knee is still painful, as long as the surgeon allows it and the knee is not in an immobiliser. Pop something slippy under the heel (like the tea tray pictured here) to make the slides easier.

