Hi Vikram,
thanks for replying..!
I too got output for the code snippet that i have posted.
But the problem is i am unable to see change in the behaviour of the keys, is it possible to do so.
i.e if is press on uparrow the cursor should move downwards and if i press on downarrow the cursor should move upwards this is my required output.

Thanks & Regards,
Rohith.G