This is a handy method devised by me to close and eject cd/dvd drive with help of keyboard shortcuts in windows Xp.
To create shortcuts follow these simple steps:
1. Download small freeware utility called tooler.
2. Start up the tooler and create shortcuts for ejecting and closing the cd/dvd drive on the desktop.
3. Now right click on the shortcuts created on the desktop and define keyboard combinations for these shortcuts as shown in image below.